home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / ck5a189s / makefile < prev    next >
Makefile  |  1993-07-08  |  127KB  |  2,908 lines

  1. # CKUKER.MAK, Tue Jun 29 18:09:00 1993
  2. #
  3. CKVER= "5A(189)"
  4. #
  5. # -- Makefile to build C-Kermit 5A for UNIX and UNIX-like systems --
  6. #
  7. # Author: Frank da Cruz, Columbia University Center for Computing Activities
  8. # 612 West 115th Street, New York, NY 10025, USA.  Phone (212) 854-5126.
  9. # e-mail: fdc@watsun.cc.columbia.edu, fdc@columbia.edu, or FDCCU@CUVMA.BITNET.
  10. #
  11. # Copyright (C) 1985, 1993, Trustees of Columbia University in the City of New
  12. # York.  The C-Kermit software may not be, in whole or in part, licensed or
  13. # sold for profit as a software product itself, nor may it be included in or
  14. # distributed with commercial products or otherwise distributed by commercial
  15. # concerns to their clients or customers without written permission of the
  16. # Office of Kermit Development and Distribution, Columbia University.  This
  17. # copyright notice must not be removed, altered, or obscured.
  18. #
  19. # CAREFUL: Don't put the lowercase word "if", "define", or "end" as the first
  20. # word after the "#" comment introducer in the makefile, even if it is
  21. # separated by whitespace.  Some versions of "make" understand these as
  22. # directives.  Uppercase letters remove the danger, e.g. "# If you have..."
  23. #
  24. # WARNING: This is a huge makefile, and it contains nested makes.
  25. # Some "make" programs run out of memory.  If this happens to you, edit
  26. # away all the parts that do not apply to your system and try again.
  27. #
  28. # For 2.10 or 2.11 BSD on DEC PDP-11s, use the separate makefile, ckubs2.mak.
  29. #
  30. #   C-Kermit can also be built for many other systems not supported by
  31. #   this makefile, including VAX/VMS, Data General AOS/VS, OS/2, the Apple
  32. #   Macintosh, the Commodore Amiga, OS-9, and the Atari ST.  They have their
  33. #   own separate build procedures.  See the file CKAAAA.HLP for information.
  34. #
  35. # INSTALLATION NOTES:
  36. #
  37. # Rename this file to "makefile" or "Makefile" if necessary.  Pick out the
  38. # make entry most appropriate for your UNIX system from the list below and
  39. # then give the appropriate "make" command, for example "make bsd", "make
  40. # sys5r3", "make posix".  For more detailed installation instructions, read
  41. # the files ckuins.doc and ckccfg.doc.  For descriptions of known problems and
  42. # limitations, read the files ckcker.bwr and ckuker.bwr (the "beware files").
  43. #
  44. # Most entries build C-Kermit with its symbol table included.
  45. # To reduce the size of the executable program, add "LNKFLAGS=-s" to
  46. # the end of your 'make' command or to the makefile entry.  To further reduce
  47. # the size after building, use 'mcs -d' if your system has such a command.
  48. #
  49. # TCP/IP networking support: If your version does not include TCP/IP
  50. # networking, try adding -DTCPSOCKET to the CFLAGS of your makefile entry.
  51. # If that doesn't work, look at some of the other entries that include this
  52. # flag for ideas about what libraries might need to be included, etc.
  53. #
  54. # Fullscreen file transfer display support: If you are going to use C-Kermit
  55. # for establishing connections (dialed, network, etc), you can configure it to
  56. # produce a formatted file transfer display by including the curses library
  57. # and adding CK_CURSES to the CFLAGS for your option.  There are many examples
  58. # below, usually ending in "c", like rs6000c, du42c, sunos41c, etc.  After
  59. # building, you still have to SET FILE DISPLAY FULLSCREEN to get the formatted
  60. # screen display.
  61. #
  62. # Please report modifications, successes, failures (preferably with fixes) or
  63. # successes to the author.
  64. #
  65. # MAKE COMMANDS FOR DIFFERENT UNIX VERSIONS:
  66. #
  67. # Some of the implementations listed below are untested for v5A:
  68. # + Marks those that have been tested successfully.
  69. # - Marks those that are known not to work.
  70. # ? Marks those yet untested in version 5A.
  71. #
  72. # + for 386BSD (Jolix) 0.0, 0.1, "make 386bsd" (see comments in entry),
  73. #     or (preferably, if it works) "make bsd44" or "make bsd44c".
  74. # + for Alliant FX/8 with Concentrix 4.1 or later, "make bsdlck"
  75. # + for Altos 486, 586, 986 with Xenix 3.0, "make altos"
  76. # + for Altos ACS68000, 8Mhz 68000, UNIX System 3 Rel 2, 512K, "make altos3"
  77. # ? for Amdahl UTS 2.4 on IBM 370 series & compatible mainframes, "make uts24"
  78. # + for Amdahl UTSV IBM 370 series & compatible mainframes, "make utsv"
  79. # + for Amdahl mainframes with UNIX System V R 5.2.6b 580, "make sys3"
  80. # + for Apollo Aegis 9.x, DOMAIN/IX 9.x, "make aegis"
  81. # ? for Apollo DOMAIN/IX, if the above fails, try "make apollobsd"
  82. # + for Apollo with SR10.0 or later, BSD environment, "make sr10-bsd"
  83. # + for Apollo with SR10.0 or later, System V environment, "make sr10-s5r3"
  84. # + for Apple Macintosh II with A/UX pre-3.0, "make aux", "auxgcc" or "auxufs"
  85. # + for Apple Macintosh with A/UX 3.0 and gcc, "make aux3gcc" or aux3gccc
  86. # ? for Apple Macintosh with Minix 1.5.10, "make minix68k" or "make minixc68"
  87. # ? for Arix System 90 with AT&T SVR3, "make sys5r3na"
  88. # + for AT&T 6300 PLUS, "make att6300" or (with no debugging) "make att6300nd"
  89. # + for AT&T 6386 WGS UNIX PC, "make sys5r3"
  90. # + for AT&T 3B2, 3B20 systems, "make att3bx" or "make att3bxc"
  91. # + for AT&T 3B1, 7300 UNIX PC, "make sys3upc", "sys3upcg" (gcc), "sys3upcold",
  92. #     or (for fullscreen curses display) "make sys3upcc", "sys3upcgc" (gcc)
  93. #        or "make sys3upcx" (see entries for more explanation),
  94. #     or (for fullscreen curses display and shared library) "make sys3upcshcc"
  95. # + for AT&T System III/System V R2 or earlier, "make sys3" or "make sys3nid"
  96. # + for AT&T System III/System V with Honey DanBer UUCP, "make sys3hdb"
  97. # + for AT&T System V on DEC VAX, "make sys3" or "make sys5r3"
  98. # + for AT&T System V R3, use "make sys5r3".  This is different from the above.
  99. # + for AT&T System V R4, "make sys5r4", "make sys5r4sx", or "make sys5r4nx",
  100. #     or if the ANSI C function prototyping makes trouble, add -DNOANSI,
  101. #     as in "sys5r4sxna" entry
  102. # + for AT&T System V R4 with Wollongong TCP/IP, "make sys5r4net", ...
  103. # + for AT&T (USL) System V R4.2 ("Destiny") use the sys5r4 entries.
  104. # + for Atari ST with Minix ST 1.5.10.3, "make minix68k" or "make minixc68"
  105. # ? for BBN C/70 with IOS 2.0, "make c70"
  106. # + for Bell UNIX Version 7 (aka 7th Edition), "make v7" (but see below)
  107. # + for BSDI/386, "make bsdiposix"
  108. # + for Berkeley Unix 2.4, "make v7" (but read v7 material below)
  109. # ? for Berkeley Unix 2.9 (DEC PDP-11 or Pro-3xx), "make bsd29"
  110. # + for Berkeley Unix 2.10, use ckubs2.mak (a separate makefile)
  111. # + for Berkeley Unix 2.11, use ckubs2.mak (a separate makefile)
  112. #     Read the instructions in ckubs2.mak.
  113. #     Rename ckubs2.mak to makefile, then "make bsd210" or "make bsd211".
  114. # + for Berkeley Unix 4.1, "make bsd41"
  115. # + for Berkeley Unix 4.2, "make bsd" (tested with 4.2 and 4.3)
  116. # + for Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP, "make bsdhdb"
  117. # + for Berkeley Unix 4.3, "make bsd43" (uses acucntrl program for locks)
  118. # + for Berkeley Unix 4.3 without acucntrl program, "make bsdlck" or "make bsd"
  119. # ? for Berkeley Unix 4.3-Tahoe, same as 4.3 BSD
  120. # + for Berkeley Unix 4.3-Reno, "make bsd43" or "make bsd44" or "make bsd44c"
  121. # + for Berkeley Unix 4.3-Carson City, "make bsd44" or "make bsd44c"
  122. # + for Berkeley Unix 4.4-Networking/2, "make bsd44" or "make bsd44c"
  123. # + for Berkeley Unix 4.4-Alpha, "make bsd44" or "make bsd44c"
  124. # ? for Bull DPX/2 with BOS/X, "make rs6000"
  125. # ? for Cadmus, "make sys3"
  126. # ? for Callan Unistar, "make sys3"
  127. # ? for CDC VX/VE 5.2.1 Sys V emulation, "make vxve"
  128. # + for Charles River Data Systems Universe 680x0 with UNOS 9.2, maybe
  129. #     also other UNOS versions, "make crds"
  130. # ? for CIE Systems 680/20 with Regulus, "make cie"
  131. # + for Commodore Amiga 3000UX Sys V R4, "make sys5r4sx"
  132. # + for Commodore Amiga 3000UX Sys V R4 and TCP/IP, "make svr4amiganet"
  133. # ? for Commodore Amiga with Minix 1.5.10, "make minix68k" of "make minixc68"
  134. # + for Concurrent/Masscomp with RTU 4.0 or later, BSD environment, "make
  135. #     rtubsd", "make rtubsd2", "make rtubsd3" (depending on where ndir.h
  136. #     is stored, see entries below).
  137. # ? for Concurrent/Masscomp with RTU 4.0 or later, System V R2, "make rtus5"
  138. # + for Concurrent/Masscomp with RTU 5.0 or later, System V R3, "make rtusvr3"
  139. # + for Concurrent (Perkin-Elmer) 3200 series, "make sys5".
  140. # + for Concurrent (Perkin-Elmer) 3200 series with <dirent.h>, "make ccop1"
  141. # + for Consensys UNIX SV/386 R4V3, "make sys5r4sx"
  142. # ? for Convergent with CTIX Sys V R2, "make sys5"
  143. # + for Convergent with CTIX 6.4.1, "make ctix"
  144. # + for Convex C1, "make convex"
  145. # + for Convex C210 with Convex/OS 8, "make convex8"
  146. # + for Convex C2 with Convex/OS 9.1, "make convex9"
  147. # + for Convex C2 with Convex/OS 10.1 and gcc 2.x, "make convex10gcc"
  148. # + for Cray Research X/MP or YMP or C90 with UNICOS 6.x (System V R3),
  149. #    "make cray"
  150. # + for Cray Research X/MP or YMP or C90 with UNICOS 7.x (System V R4),
  151. #    "make cray"
  152. # + for Cray Research X/MP or YMP or C90 with UNICOS 8.0 Alpha, "make cray8"
  153. # + for Cray Computer Cray-2 or Cray3 with CSOS, "make craycsos"
  154. # + for Cyber 910 (Silicon-Graphics Iris) with Irix 3.3, "irix33"
  155. # + for Data General Aviion with Sys V R4 (DG/UX 5.4), "make dgux540"
  156. #     or "make dgux540c" (compile ckwart separately if necessary)
  157. # + for Data General Aviion with DG/UX 4.3x using Sys V-isms, "make dgux430"
  158. # ? for Data General Aviion with DG/UX 4.3x using BSD-isms, "make dgux430bsd"
  159. # ? for Data General Aviion, earlier UNIX versions,
  160. #     "make sys5r3" (maybe compile ckwart separately)
  161. # ? for Data General MV systems with DG/UX, ???
  162. # + for Data General MV systems with MV/UX, use AOS/VS C-Kermit
  163. # + for Data General MV systems with AOS/VS, use CKDKER.MAK.
  164. # + for DEC VAX with Ultrix 1.x "make bsd"
  165. # + for DEC VAX with Ultrix 2.x "make du2"
  166. # + for DEC VAX or DECstation with Ultrix 3.0, 3.1, "make du3"
  167. # + for DECstation (or VAX) with Ultrix 4.0 or 4.1, "make du4"
  168. # + for DECstation (or VAX) with Ultrix 4.x and Kanji support, "make du4kanji"
  169. # + for DECstation (or VAX) with Ultrix 4.2, "make du42" or "make du42c"
  170. # + for DECstation (or VAX) with Ultrix 4.2, Sys V R4 world, "make du42s5r4"
  171. # + for DECstation (or VAX) with Ultrix 4.x, POSIX world, "make posix"
  172. # + for DECstation with Ultrix 4.3, "make du42"
  173. # + for DECstation with OSF/1 V1.0, "make dec-osf"
  174. # + for DEC Alpha AXP with OSF/1, "make dec-osf"
  175. # + for DEC PC 486 with OSF/1, "make dec-osf-pc"
  176. # - for DEC Pro-350 with Pro/Venix V1.x, "make provx1" (5A is too big)
  177. # ? for DEC Pro-350 with Pro/Venix V2.0 (Sys V), "make sys3nid"
  178. # ? for DEC Pro-380 with Pro/Venix V2.0 (Sys V), "make sys3" or "make sys3nid"
  179. # ? for DEC Pro-380 with 2.9, 2.10, or 2.11 BSD, "make bsd29" or "make bsd210"
  180. # + for Dell UNIX Issue 2.x (= USL Sys V/386 R4.x + fixes), "make dellsys5r4"
  181. #     or "make dellsys5r4c"
  182. # + for DIAB DS90 with DNIX (any version) create an empty <sys/file.h> if
  183. #     this file does not already exist (or add -DNOFILEH to the make entry).
  184. # + for DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX, add "getcwd" to libc.a
  185. #     (see ckuins.doc), then "make dnixold".
  186. # + for DIAB DS90 with DNIX 5.2 (Sys V.2) or earlier, "make dnix",
  187. #     "make dnixnd", or (to add curses and TCP/IP) "make dnixnetc",
  188. # + for DIAB DS90 with DNIX 5.3 (Sys V.3), "make dnix5r3"
  189. # + for DIAB DS90 with DNIX 5.3 (Sys V.3) and TCP/IP, "make dnix5r3net"
  190. # + for DIAB DS90 with DNIX 5.3 2.2 (Sys V.3), ANSI C, "make dnix5r3ansi"
  191. #     or, to include TCP/IP, "make dnix5r3ansinet",
  192. #     but you have to fix a bug in /usr/include/stdlib.h first:
  193. #     change "extern void free(char *str);" to "extern void free(void *str);"
  194. # + for Dolphin Server Technology Triton 88/17 with SV/88 R3.2, "make sv88r32"
  195. # + for Encore Multimax 310, 510 with Umax 4.2, "make umax42"
  196. # + for Encore Multimax 310, 510 with Umax 4.3, "make umax43"
  197. # + for Encore Multimax 310, 510 with Umax V 2.2, use Berkeley cc, "make bsd"
  198. # + for Encore 88K with Umax V 5.2, "make encore88k"
  199. # + for ESIX System V R4.0.3 with TCP/IP support, "make esixr4"
  200. # + for Everex STEP 386/25 Rev G with ESIX Sys V R3.2D, "make sys5r3"
  201. # ? for Fortune 32:16, For:Pro 1.8, "make ft18"
  202. # + for Fortune 32:16, For:Pro 2.1, "make ft21"
  203. # + for FPS 500 with FPX 4.1, "made bsd"
  204. # ? for Harris Night Hawk 88K or 68K with CX/UX pre-6.1, "make sys5r3"
  205. # + for Harris Night Hawk 88K or 68K with CX/UX 6.1 or later, "make cx_ux"
  206. # ? for Heurikon, "make sys3"
  207. # ? for HP-3000, MPE/ix, "make posix"?
  208. # + for HP-9000 Series 500, HP-UX 5.21 with WIN/TCP 1.2 "make hpux500wintcp"
  209. # + for HP-9000 Series, HP-UX < 6.5, without long filenames, no job control,
  210. #     "make hpuxpre65"
  211. # + for HP-9000 Series, HP-UX pre-7.0, without long filenames, "make hpux"
  212. # ? for HP-9000 Series, HP-UX 7.0 or later, no long filenames, "make hpux7sf"
  213. # + for HP-9000 Series with HP-UX Sys V R2, BSD long names, "make hpuxlf"
  214. # + for HP-9000 Series with HP-UX Sys V R2, dirent long names, "make hpuxde"
  215. #     or (to include TCP/IP support) "make hpuxdetcp"
  216. # + for HP-9000 Series with HP-UX Sys V R3, "make hpuxs5r3"
  217. # + for HP-9000 Series with HP-UX 7.0, TCP/IP, long filenames, "make hpux70lfn"
  218. # + for HP-9000 300/400 Series (680x0) with HP-UX 8.0, TCP/IP, "make hpux80"
  219. #      or "make hpux80c"
  220. # + for HP-9000 700/800 Series (PA-RISC), HP-UX 8.0, TCP/IP, "make hpux80pa"
  221. #      or "make hpux80pac"
  222. # + for HP-9000 Series with HP-UX 8.0, no TCP/IP, long filenames,
  223. #      "make hpux80notcp" or "make hpuxde"
  224. # + for HP-9000 700/800 Series (PA-RISC), HP-UX 9.1, TCP/IP, "make hpux91pac"
  225. #      or, to use machine features, "make hpux91paco"
  226. # ? for IBM 370 Series with IX/370, "make ix370"
  227. # + for IBM 370 Series with AIX/370 1.2, "make aix370"
  228. # ? for IBM 370 Series with AIX/370 3.0, "make aix370"
  229. # + for IBM 370 Series with AIX/ESA 2.1, "make aixesa"
  230. # - for IBM PC/AT 286 & compatibles with Mark Williams Coherent OS,
  231. #     command-line-only version, "make coherent" (5A is too big)
  232. # + for IBM PC/AT & compatibles with Mark Williams Coherent OS,
  233. #     minimum interactive version, "make coherentmi" (386 version only)
  234. # + for IBM PC/AT & compatibles with Mark Williams Coherent OS,
  235. #     full interactive version, "make coherentmax" (386 version only)
  236. # - for IBM PC/AT & compatibles with original MINIX, "make minix" (too big)
  237. # + for IBM PC/AT & compatibles with MINIX, new compiler, "make minixnew"
  238. # + for IBM PC family, 386-based, with MINIX/386, "make minix386"
  239. #     or if you have GNU CC, "make minix386gcc"
  240. # + for IBM PS/2 with PS/2 AIX 1.0, 1.1, or 1.2, "make ps2aix" on make level
  241. #      1009 with U401450
  242. # + for IBM PS/2 with PS/2 AIX 1.3, "make ps2aix3"
  243. # + for IBM RISC System/6000 with AIX 3.0 or 3.1 "make rs6000" or
  244. #     "make rs6000c" on make level 2008, 3.1.8
  245. # + for IBM RISC System/6000 with AIX 3.2.3Extended
  246. #     "make rs6000", "make rs6000c", "make rs6aix32", or "make rs6aix32c"
  247. # ? for IBM RT PC with AIX 2.1, "make sys3"
  248. # + for IBM RT PC with AIX 2.2.1, "make rtaix" or "make rtaixc"
  249. # ? for IBM RT PC with ACIS 4.2, "make bsd"
  250. # + for IBM RT PC with ACIS 4.3, "make rtacis" or "make bsd KFLAGS=-DNOANSI"
  251. # + for IBM RT PC with 4.3BSD/Reno, "make bsd44" or "make bsd44c"
  252. # + for ICL DRS3000 (80486) with DRS/NX, "make iclsys5r4_486"
  253. # + for ICL DRS6000 (Sparc) with DRS/NX, "make iclsys5r4"
  254. # + Integrated Solutions Inc V8S VME 68020, "make isi"
  255. # + for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
  256. # ? for Intel Xenix/286, "make sco286"
  257. # ? for Interactive System III (PC/IX), "make pcix" or "make is3"
  258. # + for Interactive System III (PC/IX) with gcc, "make is3gcc"
  259. # + for Interactive 386/ix 1.0.6 with TCP/IP networking, "make is5r3net2"
  260. # + for Interactive 386/ix 2.0.x, "make is5r3" or (POSIX) "make is5r3p"
  261. # + for Interactive 386/ix 2.0.x with TCP/IP networking, "make is5r3net"
  262. #     or "make is5r3net2"
  263. # + for Interactive 386/ix 2.2.1, job control, curses, no net, gcc,
  264. #     "make is5r3gcc"
  265. # + for Interactive 386/ix 2.2 - 3.0 with TCP/IP networking and job control,
  266. #     "make is5r3netjc"
  267. # + for Interactive UNIX Sys V R3 2.2 with job control, curses, "make is5r3jc"
  268. # + for Interactive UNIX Sys V R3 3.0, "make is5r3jc"
  269. # + for Intergraph Clipper, "make clix"
  270. # + for Linux/386, "make linuxgcc2" or "make linuxgcc2net"
  271. #     (reportedly, the lockfile might need to be changed to /usr/spool/LCK).
  272. # + for Luxor ABC-9000 (DIAB DS-90) with pre-5.2 DNIX, add "getcwd" to libc.a
  273. #     (see ckuins.doc), then "make dnixold".
  274. # ? for Masscomp RTU AT&T System III, "make rtu"
  275. #   for other Masscomp, see Concurrent.
  276. # ? for Microport SV/AT (System V R2), "make mpsysv" (last edit tested: 144)
  277. # + for Microport SVR4 2.2, 3.1, or 4.1 "make sys5r4sx"
  278. # ? for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
  279. # + for MIPS System with RISC/os (UMIPS) 4.52 = AT&T SVR3, "make mips"
  280. #     or "make mipstcpc"
  281. # + for Modcomp 9730, Real/IX, "make sys5r3" (or modify to use gcc = GLS cc)
  282. # + for Modcomp Realstar 1000 with REAL/IX D.1, "make sv88r32"
  283. # ? for Motorola Four Phase, "make sys3" or "make sys3nid"
  284. # + for Motorola Delta System V/68 R3, "make sv68r3"
  285. # + for Motorola Delta System V/68 R3V5, "make sv68r3v5"
  286. # + for Motorola Delta System V/68 R3V5.1, "make sv68r3v51"
  287. # + for Motorola Delta System V/88 R32, "make sv88r32"
  288. # + for Motorola Delta System V/88 R40, "make sv88r40"
  289. # + for Mt Xinu Mach386 on 386/486-based PCs, "make bsd43"
  290. # ? for NCR Tower 1632, OS 1.02, "make tower1"
  291. # + for NCR Tower 1632 or Minitower with System V R2, "make sys3"
  292. #     or "make sys3nv"
  293. # + for NCR Tower 32, OS Release 1.xx.xx, "make tower32-1"
  294. # + for NCR Tower 32, OS Release 2.xx.xx, "make tower32-2"
  295. # + for NCR Tower 32, OS Releases based on Sys V R3, "make tower32"
  296. # + for NCR Tower 32, OS Releases based on Sys V R3 with gcc "make tower32g"
  297. # + for NCR System 3000, AT&T UNIX System V R4 2.0, "make sys5r4sxna"
  298. # + for NeXTSTEP 1.0 through 3.0, "make next"
  299. # + for NeXTSTEP/486, "make next"
  300. # + for Nixdorf Targon/31, "make t31tos40x"
  301. # + for Norsk Data Uniline 88/17 with SV/88 R3.2, "make sv88r32"
  302. # + for OkiStation 7300 Series, "make sys5r4sxtcp"
  303. # + for Olivetti LSX-3020 with X/OS R.2.3, "make xos23" or "make xos23c"
  304. # + for Perkin-Elmer (Concurrent) 3200 series, "make sys5".
  305. # + for Perkin-Elmer (Concurrent) 3200 series with <dirent.h>, "make ccop1"
  306. # + for Perkin-Elmer/Concurrent 3200 with Xelos R02, "make ccop1"
  307. # + for PFU Compact A Series SX/A TISP V10/E50 (Japan), "make sxae50"
  308. # ? for Plexus, "make sys3"
  309. # + for Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1,
  310. #     "ucb make pyramid" or for HDB UUCP, "ucb make pyramid-hdb" or
  311. # + for Pyramid MIServer S or ES Series, DataCenter/OSx, "make pyrdcosx"
  312. # + for Pyramid MIS-S MIPS R3000, DataCenter OSx System V R4, "make pyrdcosx"
  313. # + for POSIX on anything, "make posix" (but adjustments might be necessary).
  314. # + for POSIX on SunOS 4.1 or later, "make sunposix"
  315. # + for QNX 4.1 on 286 PC or above, Watcom C 8.5, "make qnx"
  316. # ? for Ridge 32 (ROS3.2), "make ridge32"
  317. # ? for Samsung MagicStation, "make sys5r4"
  318. # ? for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
  319. # + for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
  320. #     NOTE: reportedly this makefile is too long for SCO Xenix/286 make, but it
  321. #     works with "makeL", or if some of the other make entries are edited out.
  322. # + for SCO Xenix/386 2.2.2, "make sco386"
  323. # + for SCO Xenix/386 2.3.x, "make sco3r2" or "make sco3r2x"
  324. # + for SCO UNIX/386 3.2.0 or 3.2.1, "make sco3r2" or "make sco3r2x"
  325. # + for SCO UNIX/386 3.2.2, "make sco3r22" or "make sco3r22gcc"
  326. #     or "make sco3r22c"
  327. # + for SCO UNIX/386 3.2.2 with SCO TCP/IP, "make sco3r22net"
  328. #     or "make sco3r22netc" (curses)
  329. # + for SCO ODT 1.1, "make sco3r22net" or "make sco3r22netc" (curses)
  330. # + for SCO UNIX/386 3.2 V4.0, no network support, "make sco32v4"
  331. # + for SCO UNIX 3.2 V4.0 with TCP/IP, <dirent.h> for Extended Acer File
  332. #     System (EAFS), curses, ANSI C compilation, "make sco32v4net"
  333. # + for SCO ODT 2.0, "make sco32v4net"
  334. # + for SCO ODT 3.0, "make sco_odt30"
  335. # + for SCO Xenix/386 or UNIX/386 with Excelan TCP/IP, "make sco3r2net"
  336. #     or (to add curses support) "make sco3r2netc"
  337. # + for SCO Xenix 2.3.x with Racal-InterLan TCP/IP, "make sco3r2netri"
  338. # + for SCO Xenix 2.3.x with SCO (Lachman) TCP/IP, "make sco3r2lai"
  339. # + for other UNIX varieties with Racal Interlan TCP/IP, read sco3r2netri entry
  340. # + for Sequent with DYNIX/PTX 1.2.1, "make dynixptx12"
  341. # + for Sequent with DYNIX/PTX 1.3 or 1.4 with TCP/IP, "make dynixptx13"
  342. # + for Sequent with DYNIX/PTX 2.0 with TCP/IP, "make dynixptx20"
  343. #     or "dynixptx20c"
  344. # + for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make dynix3"
  345. #    or "make dynix3noacu"
  346. # + for Sequent Symmetry S81 with DYNIX 3.0.xx, "make dynix3"
  347. # + for Sequent DYNIX 3.1.xx, "make dynix31" or "make dynix31c"
  348. # + for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"
  349. # + for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"
  350. # + for Silicon Graphics Iris Indigo with IRIX 4.0 or 5.0, "make irix40" or
  351. #     (to include Yellow Pages and Curses) "make irix40ypc"
  352. # + for Solaris 2.0, "make sunsol20" -- should work on any computer that
  353. #    runs Solaris 2.0, since it supposed to be portable.
  354. # + for Solaris 2.1 on Sun SPARC, "make sunos51", "sunos51tcp", etc.
  355. # ? for Solaris 2.1 on 486-based PC, "make sunos51", "sunos51tcp", etc.
  356. # + for Solaris 2.2 on Sun SPARC, "make sunos51", "sunos51tcp", etc.
  357. # + for Solbourne 4/500 with OS/MP 4 "make sunos4"
  358. # + for Solbourne 4/500 with OS/MP 4.1 "make sunos41" or "make sunos41c"
  359. # + for SONY NEWS with NEWS-OS 4.0.1C, "make sonynews"
  360. # + for SONY NEWS with NEWS-OS 4.1.2C, "make sonynews"
  361. # + for Sperry/UNISYS 5000/20, UTS V 5.2 3R1, "make sys5"
  362. # + for Sperry/UNISYS 5000/30/35/50/55, UTS V 5.2 2.01, "make unisys5r2"
  363. # + for Sperry/UNISYS 5000/80 with System V R3, "make sys5r3"
  364. # + for Sperry/UNISYS 5000/95 with System V R3, "make sys5r3"
  365. #     For UNISYS SVR3 it might be necessary to "make sys5r3 KFLAGS=-UDYNAMIC"
  366. # + for Stardent 1520, "make sys5r3"
  367. # + for Sun with Sun UNIX 3.5 and gcc, "make sunos3gcc"
  368. # + for Sun with pre-4.0 SunOS versions, "make bsd" (or appropriate variant)
  369. # + for Sun with SunOS 4.0, BSD environment, "make sunos4"
  370. # + for Sun with SunOS 4.0, BSD, with SunLink X.25, make sunos4x25
  371. # + for Sun with SunOS 4.0, AT&T Sys V R3 environment, "make sunos4s5"
  372. # + for Sun with SunOS 4.1 or 4.1.1, BSD environment, "make sunos41"
  373. #     or "make sunos41c" (curses) or "make sunos41gcc" (compile with gcc)
  374. # + for Sun with SunOS 4.1, BSD, with SunLink X.25, "make sunos41x25"
  375. #     or "make sunos41x25c" (curses)
  376. # + for Sun with SunOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5"
  377. # + for Sun with SunOS 4.1, 4.1.1, POSIX environment, "make sunposix"
  378. # + for Sun with SunOS 4.1.2, "make sunos41" or any of its variations.
  379. #     NOTE:  All SUNOS 4.x systems -- Shared libraries are used by default.
  380. #       If this causes problems, add -Bstatic to CFLAGS.
  381. #     NOTE2: When building C-Kermit under SunOS for the BSD universe,
  382. #       but /usr/5bin/cc is ahead of /usr/ucb/cc in your PATH, add
  383. #       "CC=/usr/ucb/cc CC2=/usr/ucb/cc" to the make entry.
  384. #     NOTE3: If an executable built on one type of Sun hardware does not work
  385. #       on another type, rebuild the program from source on the target machine.
  386. # + for Sun with Solaris 1.0 == SUNOS 4.1.2, "make sunos41"
  387. # + for Sun with SunOS 5.0 == Solaris 2.0, "make sunsol20"
  388. # + for Sun with Solaris 2.0, "make sunsol20"
  389. # + for Sun with Solaris 2.0 and CD-ROM gcc compiler, "make sunsol20gcc"
  390. # + for Sun with SunOS 5.1 == Solaris 2.1, "make sunos51", "make sunos51tcp",
  391. #     "make sunos51c", or "make sunos51cgcc".
  392. # + for Tandy 16/6000 with Xenix 3.0, "make trs16"
  393. # + for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"
  394. #     or (for models without hardware flow control), "make uteknohwfc"
  395. # + for Tektronix XD88 series with UTekV OS, "make utekvr3"
  396. # + for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"
  397. # ? for Unistar, "make sys5"
  398. # + for UNISYS S/4040 68040 CTIX SVR3.2 6.4.1, "make ctix" or "make sys5r3"
  399. # + for UNISYS U6000/65 MP 486/50 UNIX SVR4 1.0.2, "make sys5r4nx"
  400. #   for UNISYS ... (also see Sperry)
  401. # + for Univel UnixWare, "make unixware"
  402. # ? for Valid Scaldstar, "make valid"
  403. # ? for Whitechapel MG01 Genix 1.3, "make white"
  404. # ? for Zilog ZEUS 3.21, "make zilog"
  405. #
  406. # The result should be a runnable program called "wermit" in the current
  407. # directory.  After satisfactory testing, you can rename wermit to "kermit"
  408. # and put it where users can find it.
  409. #
  410. # To remove intermediate and object files, "make clean".
  411. # To run lint on the source files, "make lintsun", "make lintbsd",
  412. # "make lints5", as appropriate.
  413. #
  414. ##############################################################################
  415. #
  416. # NOTES FOR V7 AND 2.X BSD (BASED ON VERSION 4E OF C-KERMIT):
  417. #
  418. # For Unix Version 7, several variables must be defined to the values
  419. # associated with your system.  BOOTNAME=/edition7 is the kernel image on
  420. # okstate's Perkin-Elmer 3230.  Others will probably be /unix.  PROCNAME=proc
  421. # is the name of the structure assigned to each process on okstate's system.
  422. # This may be "_proc" or some other variation.  See <sys/proc.h> for more
  423. # info on your systems name conventions.  NPROCNAME=nproc is the name of a
  424. # kernel variable that tells how many "proc" structures there are.  Again
  425. # this may be different on your system, but nproc will probably be somewhere.
  426. # The variable NPTYPE is the type of the nproc variable -- int, short, etc.
  427. # which can probably be gleaned from <sys/param.h>.  The definition of DIRECT
  428. # is a little more complicated.  If nlist() returns, for "proc" only, the
  429. # address of the array, then you should define DIRECT as it is below.  If
  430. # however, nlist() returns the address of a pointer to the array, then you
  431. # should give DIRECT a null definition (DIRECT= ).  The extern declaration in
  432. # <sys/proc.h> should clarify this for you.  If it is "extern struct proc
  433. # *proc", then you should NOT define DIRECT.  If it is "extern struct proc
  434. # proc[]", then you should probably define DIRECT as it is below.  See
  435. # ckuv7.hlp for further information.
  436. #
  437. # For 2.9 BSD, the makefile may use pcc rather than cc for compiles; that's
  438. # what the CC and CC2 definitions are for (the current version of the
  439. # makefile uses cc for both; this was tested in version 4E of C-Kermit and
  440. # worked OK on the DEC Pro 380, but all bets are off for version 5A).  2.9
  441. # support basically follows the 4.1 path.  Some 2.9 systems use "dir.h" for
  442. # the directory header file, others will need to change this to "ndir.h".
  443. # 2.10 and 2.11BSD follow the 4.3BSD path and are build with a special entry,
  444. # bsd210, which uses overlays.
  445. #
  446. # The v7 and 2.9bsd versions assume I&D space on a PDP-11.  When building
  447. # C-Kermit for v7 on a PDP-11, you should probably add the -i option to the
  448. # link flags.  Without I&D space, overlays will be necessary (if available),
  449. # or code segment mapping (a`la Pro/Venix) if that's available.
  450. #
  451. ##############################################################################
  452. #
  453. # V7-specific variables.
  454. # These are set up for Perkin-Elmer 3230 V7 Unix:
  455. #
  456. PROC=proc
  457. DIRECT=
  458. NPROC=nproc
  459. NPTYPE=int
  460. BOOTFILE=/edition7
  461. #
  462. # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
  463. #   DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
  464. #
  465. ###########################################################################
  466. #
  467. #  Compile and Link variables:
  468. #
  469. #  EXT is the extension (file type) for object files, normally o.
  470. #  See MINIX entry for what to do if another filetype must be used.
  471. #
  472. EXT=o
  473. #LNKFLAGS=
  474. SHAREDLIB=
  475. CC= cc
  476. CC2= cc
  477. MAKE= make
  478. SHELL=/bin/sh
  479. #
  480. ###########################################################################
  481. #
  482. # Easy installation. Modify this to suit your own computer's file organization
  483. # and permissions.  If you don't have write access to the destination
  484. # directories, "make install" will fail.
  485.  
  486. WERMIT = makewhat
  487. DESTDIR =
  488. BINDIR = /usr/local/bin
  489. MANDIR = /usr/man/manl
  490. MANEXT = l
  491. ALL = $(WERMIT)
  492.  
  493. all: $(ALL)
  494.  
  495. install: $(ALL)
  496.     cp wermit $(DESTDIR)$(BINDIR)/kermit
  497. # The following can fail if the program image was already stripped,
  498. # for example by the link flags in the makefile entry.
  499. #    strip $(DESTDIR)$(BINDIR)/kermit
  500.     chmod 755 $(DESTDIR)$(BINDIR)/kermit
  501.     cp ckuker.nr $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)
  502.     chmod 644 $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)
  503.  
  504. makewhat:
  505.     @echo 'make what?  You must tell which system to make C-Kermit for.'
  506.     @echo Examples:  make bsd43, make sys5, make sunos41, etc.
  507.     @echo Please read the comments at the beginning of the makefile.
  508.  
  509. ###########################################################################
  510. #
  511. # Dependencies Section:
  512.  
  513. wermit:    ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  514.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  515.         ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
  516.         ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) \
  517.         ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  518.         ckcnet.$(EXT)
  519.     $(CC2) $(LNKFLAGS) -o wermit ckcmai.$(EXT) ckutio.$(EXT) \
  520.         ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  521.         ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) \
  522.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  523.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) \
  524.         ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) $(LIBS)
  525.  
  526. #Malloc Debugging version
  527.  
  528. mermit:    ckcmdb.$(EXT) ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  529.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  530.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  531.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  532.         ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  533.         ckuscr.$(EXT) ckcnet.$(EXT)
  534.     $(CC2) $(LNKFLAGS) -o mermit ckcmdb.$(EXT) ckcmai.$(EXT) \
  535.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  536.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  537.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  538.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  539.         ckuusr.$(EXT) ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  540.         ckcnet.$(EXT) $(LIBS)
  541.  
  542. # Here is an example of building Kermit with overlays for a small machine,
  543. # Like a PDP-11 without separate I&D space. This example is for 2.11 BSD:
  544.  
  545. ovwermit: ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  546.     ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) \
  547.     ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  548.     ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  549.     ckuscr.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) \
  550.     ckuusy.$(EXT) ckustr.o strings.o
  551.     ar x /lib/libc.a getpwent.o ctime.o ndbm.o
  552.     $(CC2) $(LNKFLAGS) -o wermit ckcmai.$(EXT) \
  553.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  554.         ckcfn3.$(EXT) \
  555.          -Z ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  556.             ckuus3.$(EXT) \
  557.          -Z ckuus4.$(EXT) ckuus5.$(EXT) ckuusr.$(EXT) ckuus6.$(EXT) \
  558.             ctime.o \
  559.          -Z ckuus7.$(EXT) ckcfn3.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  560.             ckcnet.$(EXT)  \
  561.          -Z ckuus2.$(EXT) ckuusx.$(EXT) ckucon.$(EXT) ckuusy.$(EXT) \
  562.             getpwent.o ndbm.o \
  563.          -Y ckustr.o strings.o $(LIBS)
  564.  
  565. strings.o: strings
  566.     xstr
  567.     cc -c xs.c
  568.     mv -f xs.o strings.o
  569.     rm -f xs.c
  570.  
  571. # Dependencies for each module...
  572. #
  573. # The following almost makes this work with gcc on the Sun-4.
  574. # .SUFFIXES: .c .$(EXT)
  575. # .$(EXT).c: ;    $(CC) $(CFLAGS) -c $<
  576.  
  577. ckcmai.$(EXT): ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h
  578.  
  579. ckcpro.$(EXT): ckcpro.c ckcker.h ckcdeb.h ckcasc.h
  580.  
  581. ckcpro.c: ckcpro.w wart ckcdeb.h ckcasc.h ckcker.h
  582.     ./wart ckcpro.w ckcpro.c
  583.  
  584. ckcfns.$(EXT): ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  585.         ckuxla.h
  586.  
  587. ckcfn2.$(EXT): ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckuxla.h
  588.  
  589. ckcfn3.$(EXT): ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  590.         ckuxla.h
  591.  
  592. ckuxla.$(EXT): ckuxla.c ckcker.h ckcdeb.h ckcxla.h ckuxla.h
  593.  
  594. ckuusr.$(EXT): ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  595.         ckcasc.h ckcnet.h
  596.  
  597. ckuus2.$(EXT): ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  598.         ckcasc.h
  599.  
  600. ckuus3.$(EXT): ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  601.         ckcasc.h ckcnet.h
  602.  
  603. ckuus4.$(EXT): ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  604.         ckcasc.h ckcnet.h ckuver.h
  605.  
  606. ckuus5.$(EXT): ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  607.  
  608. ckuus6.$(EXT): ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  609.  
  610. ckuus7.$(EXT): ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  611.         ckcasc.h ckcnet.h
  612.  
  613. ckuusx.$(EXT): ckuusx.c  ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  614.  
  615. ckuusy.$(EXT): ckuusy.c  ckcker.h ckcdeb.h ckcasc.h
  616.  
  617. ckucmd.$(EXT): ckucmd.c ckcasc.h ckucmd.h ckcdeb.h
  618.  
  619. ckufio.$(EXT): ckufio.c ckcdeb.h ckuver.h
  620.  
  621. ckutio.$(EXT): ckutio.c ckcdeb.h ckcnet.h ckuver.h
  622.  
  623. ckucon.$(EXT): ckucon.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h
  624.  
  625. ckcnet.$(EXT): ckcnet.c ckcdeb.h ckcker.h ckcnet.h
  626.  
  627. wart: ckwart.$(EXT)
  628.     $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
  629.  
  630. ckcmdb.$(EXT): ckcmdb.c ckcdeb.h
  631.  
  632. ckwart.$(EXT): ckwart.c
  633.  
  634. ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h
  635.  
  636. ckuscr.$(EXT): ckuscr.c ckcker.h ckcdeb.h ckcasc.h
  637.  
  638. ###########################################################################
  639. #
  640. # Entries to make C-Kermit for specific systems.
  641. #
  642. # Put the ones that need short makefiles first.
  643.  
  644. bsd210:
  645.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.10BSD.
  646.  
  647. bsd211:
  648.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.11BSD.
  649.  
  650. #Apollo Aegis 9.x.  Includes TCP/IP support.
  651. #You can also add processor-dependent optimization switches like -M570.
  652. aegis:
  653.     @echo Making C-Kermit $(CKVER) for Apollo Aegis 9.x...
  654.     $(MAKE) wermit "CFLAGS= -DBSD4 -DDYNAMIC -DTCPSOCKET \
  655.     -DCK_CURSES -O $(KFLAGS)" "LIBS = -lcurses -ltermcap"
  656.  
  657. #Apple Mac II, A/UX pre-3.0
  658. #Warning, if "send *" doesn't work, try the auxufs makefile entry below.
  659. aux:
  660.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  661.     $(MAKE) wermit "CFLAGS = -DAUX -DDYNAMIC -DTCPSOCKET $(KFLAGS) -i -O" \
  662.         "LNKFLAGS = -i"
  663.  
  664. #Apple Mac II, A/UX pre-3.0, compiled with gcc
  665. auxgcc:
  666.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  667.     $(MAKE) wermit "CFLAGS = -DAUX -DDYNAMIC -DTCPSOCKET $(KFLAGS) \
  668.     -traditional -i -O" "LNKFLAGS = " "CC = gcc" "CC2 = gcc"
  669.  
  670. #Apple Mac II, A/UX, pre-3.0, but with ufs file volumes, uses <dirent.h>.
  671. auxufs:
  672.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  673.     $(MAKE) wermit "CFLAGS = -DAUX -DDYNAMIC -DTCPSOCKET -DDIRENT \
  674.     $(KFLAGS) -i -O" "LNKFLAGS = -i"
  675.  
  676. #Apple Mac II, A/UX 3.0, compiled with gcc
  677. aux3gcc:
  678.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  679.     $(MAKE) wermit "CFLAGS = -DAUX -DHDBUUCP -DLFDEVNO -DDYNAMIC \
  680.     -DTCPSOCKET -DDIRENT $(KFLAGS) -O2" "LNKFLAGS =" \
  681.     "CC=gcc -pipe -traditional" "CC2=gcc -pipe -traditional"
  682.  
  683. #As above, plus curses.
  684. aux3gccc:
  685.     $(MAKE) "MAKE=$(MAKE)" aux3gcc "KFLAGS=$(KFLAGS) -CK_CURSES" \
  686.     "LIBS = -lcurses -ltermcap"
  687.  
  688. #Berkeley Unix 4.1
  689. bsd41:
  690.     @echo Making C-Kermit $(CKVER) for 4.1BSD...
  691.     $(MAKE) wermit "CFLAGS= -DBSD41" "LIBS = -ljobs"
  692.  
  693. #Berkeley 4.2, 4.3, also Ultrix-32 1.x, 2.x, 3.x, many others
  694. # Add -O, -DDYNAMIC, -s, etc, if they work.
  695. # If you have a version of BSD but signal() is void rather than int,
  696. # "make bsd KFLAGS=-DSIG_V".
  697. bsd:
  698.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  699.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET $(KFLAGS)"
  700.  
  701. #Berkeley 4.2, 4.3, minimum size
  702. bsdm:
  703.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  704.     $(MAKE) wermit "CFLAGS= -O -DBSD4 -DDYNAMIC -DNODIAL -DNOHELP \
  705.     -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
  706.     "LNKFLAGS = -s"
  707.  
  708. #Berkeley Unix with HoneyDanBer UUCP
  709. bsdhdb:
  710.     @echo Making C-Kermit $(CKVER) for 4.2BSD with HDB UUCP...
  711.     $(MAKE) wermit "CFLAGS= -DHDBUUCP -DBSD4 -DTCPSOCKET $(KFLAGS)"
  712.  
  713. #Berkeley Unix 4.3 with acucntrl program
  714. bsd43:
  715.     @echo Making C-Kermit $(CKVER) for 4.3BSD with acucntrl...
  716.     $(MAKE) wermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET $(KFLAGS) -O"
  717.  
  718. #Ditto, with curses support.
  719. bsd43d:
  720.     @echo Making C-Kermit $(CKVER) for 4.3BSD with acucntrl and curses...
  721.     $(MAKE) wermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -DCK_CURSES \
  722.     $(KFLAGS) -O"  "LIBS=-lcurses -ltermcap"
  723.  
  724. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  725. #but without acucntrl program
  726. bsdlck:
  727.     @echo Making C-Kermit $(CKVER) for 4.2BSD, /usr/spool/uucp/LCK/...
  728.     $(MAKE) wermit "CFLAGS= -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"
  729.  
  730. #Berkeley UNIX 4.4-Alpha, NET/2, etc (Post-Reno), with TCP/IP networking.
  731. #NOTE: This is not a pure POSIX configuration.  Using -DPOSIX instead of
  732. #-DBSD44 prevents any kind of directory-reading (for wildcard expansion),
  733. #and disallows use of ENOTCONN symbol for detecting broken network
  734. #connections, and disallows RTS/CTS flow control, and would also require
  735. #definition of the appropriate UUCP lockfile convention.
  736. bsd44:
  737.     @echo Making C-Kermit $(CKVER) for 4.4BSD...
  738.     $(MAKE) wermit "CFLAGS= -DBSD44 -DDYNAMIC -DTCPSOCKET $(KFLAGS) -O"
  739.  
  740. #Berkeley UNIX 4.4, as above, but with curses for fullscreen display
  741. bsd44c:
  742.     @echo Making C-Kermit $(CKVER) for 4.4BSD with curses...
  743.     $(MAKE) wermit "CFLAGS= -DBSD44 -DCK_CURSES -DDYNAMIC -DTCPSOCKET \
  744.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap"
  745.  
  746. #Tektronix 6130, 4319, 4301, etc, with UTek OS, /usr/spool/uucp/LCK./...
  747. #The models that support hardware flow control.
  748. utek:
  749.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, hardware flow control'
  750.     $(MAKE) wermit "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET -DDYNAMIC \
  751.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  752.     -DTRMBUFL=2048 -DCK_DTRCTS $(KFLAGS)"
  753.  
  754.  
  755. #Tektronix 4315, 4316, 4317 with UTek OS, /usr/spool/uucp/LCK./...
  756. #The models that do not fully support hardware flow control.
  757. uteknohwfc:
  758.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, no h/w flow control'
  759.     $(MAKE) wermit "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET -DDYNAMIC \
  760.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  761.     -DTRMBUFL=2048 $(KFLAGS)"
  762.  
  763. #Tektronix XD88 with  UTekV OS
  764. utekvr3:
  765.     @echo 'Making C-Kermit $(CKVER) for Tektronix XD88 UTekV R3...'
  766.     $(MAKE) wermit \
  767.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  768.     -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) -O" \
  769.     "LIBS= -lcurses" "LNKFLAGS= -s"
  770.  
  771. #Convergent CTIX 6.4.1
  772. ctix:
  773.     @echo 'Making C-Kermit $(CKVER) for Convergent CTIX 6.4.1'
  774.     $(MAKE) wermit \
  775.     "CFLAGS= -DSVR3 -DDIRENT -DTCPSOCKET -DHDBUUCP -DCK_CURSES -DDYNAMIC \
  776.     $(KFLAGS) -XO" "LNKFLAGS=-s" "LIBS=-lsocket -lcurses -lc_s"
  777.     mcs -d wermit
  778.  
  779. # The following makefile entry should work for any Harris Night Hawk system
  780. # (either 88k or 68k based) running release 6.1 or later of the CX/UX
  781. # operating system. This is a POSIX and ANSI-C compliant system which also
  782. # supports BSD networking. (Earlier CX/UX releases will probably work with
  783. # sys5r3, but this has not been verified).
  784. #
  785. cx_ux:
  786.     @echo Making C-Kermit $(CKVER) for Harris Night Hawk CX/UX 6.1 or later
  787.     $(MAKE) wermit \
  788.     "CFLAGS=-DPOSIX -DTCPSOCKET -DHDBUUCP -DPID_T=pid_t -DWAIT_T=int \
  789.     -Dd_ino=d_fileno -DUID_T=uid_t -DGID_T=gid_t -DDYNAMIC $(KFLAGS) -Xa \
  790.     -O3 -g" "LNKFLAGS=-O3"
  791.  
  792. #Perkin-Elmer 3200 Xelos R02 or earlier
  793. ccop1:
  794.     @echo 'Making C-Kermit $(CKVER) for Xelos & Public Domain Dirent calls'
  795.     @echo 'or System V R2 or earlier...'
  796.     $(MAKE) wermit "CFLAGS = -DATTSV -Dvoid=int -DDIRENT -DCK_CURSES \
  797.     $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -lcurses -ltermlib"
  798.  
  799. #Intergraph Clipper 2000, 3000, 4000, 5000, or 6000 with CLIX 3.1 = Sys V R3
  800. clix:
  801.     $(MAKE) "CC=acc" sys5r3
  802.  
  803. #Mark Williams Coherent 286 or 386 on IBM PC family.
  804. #There is a 64K limit on program size, so this is a command-line only version.
  805. coherent:
  806.     $(MAKE) "CFLAGS = -O -DCOHERENT -DDYNAMIC -DNOANSI -DNOICP -DNOSETKEY \
  807.     -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
  808.     -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" wermit
  809.  
  810. #Mark Williams Coherent 386 on IBM PC family.
  811. #This will make a "minimum interactive" version - no scripts,
  812. #no character sets, no help, no dial, no debug/transaction logging, no
  813. #transmit, msend, mail, type, etc.
  814. coherentmi:
  815.     $(MAKE) "CFLAGS = -O -DCOHERENT -DDYNAMIC -DNOANSI -DNOSETKEY \
  816.     -DNOSHOW -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG \
  817.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DNOSERVER -DNOUUCP \
  818.     -DNOSPL -DNOSETBUF -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  819.     -DNOCMDL $(KFLAGS) -VSUVAR" wermit
  820.  
  821. #Mark Williams Coherent 386 on IBM PC/AT family.
  822. coherentmax:
  823.     $(MAKE) "CFLAGS = -O -DCOHERENT -DDYNAMIC -DNOANSI \
  824.     -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" "LNKFLAGS = -O -s" wermit
  825.  
  826. #DEC Ultrix 2.x
  827. # Add -O, -DDYNAMIC, -s, etc, if they work.
  828. du2:
  829.     @echo Making C-Kermit $(CKVER) for Ultrix 2.x ...
  830.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DDU2 $(KFLAGS)"
  831.  
  832. #DEC Ultrix 3.1 (and probably also 3.0)
  833. du3:
  834.     @echo Making C-Kermit $(CKVER) for Ultrix 3.x...
  835.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DDIRENT -DSIG_V \
  836.     -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS = -s"
  837.  
  838. #Name changed from ds4 to du4, should work on VAXes as well as DECstations.
  839. ds4:
  840.     $(MAKE) "MAKE=$(MAKE)" du4
  841.  
  842. #DEC Ultrix 4.0 or 4.1 on DECstation, VAXstation, VAX, etc.
  843. du4:
  844.     @echo Making C-Kermit $(CKVER) for Ultrix 4.0 or 4.1...
  845.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDYNAMIC \
  846.     $(KFLAGS) -Olimit 1350" "LNKFLAGS = -s"
  847.  
  848. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc.
  849. #Like du4, except new C compiler supports -O2 optimization.
  850. du42:
  851.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2...
  852.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDYNAMIC \
  853.     $(KFLAGS) -O2 -Olimit 1350" "LNKFLAGS = -s"
  854.  
  855. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc.
  856. #Like du42, but with curses support added
  857. du42c:
  858.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2...
  859.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDYNAMIC \
  860.     -DCK_CURSES $(KFLAGS) -O2 -Olimit 1350" "LNKFLAGS = -s" \
  861.     "LIBS= -lcurses -ltermcap"
  862.  
  863. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc, System V R4 environment
  864. du42s5r4:
  865.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4 on Ultrix...'
  866.     $(MAKE) wermit "CFLAGS = -O2 -Olimit 1350 -DSVR4 -DDIRENT -DHDBUUCP \
  867.     -DDYNAMIC -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  868.  
  869. #DEC OSF/1 V1.0 on DECstation, VAX, or Alpha AXP.
  870. dec-osf:
  871.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V1.x...
  872.     $(MAKE) wermit "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DSIG_V \
  873.     -DDYNAMIC $(KFLAGS) -Olimit 1350" "LNKFLAGS = -s" "LIBS = -lbsd"
  874.  
  875. #DEC OSF/1 V1.0 on a PC with OSF/1 1.2
  876. dec-osf-pc:
  877.     @echo Making C-Kermit $(CKVER) for PC version of DEC OSF/1 V1.2...
  878.     $(MAKE) wermit "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DSIG_V \
  879.     -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lbsd"
  880.  
  881. #Sequent DYNIX/PTX 1.2.1
  882. dynixptx12:
  883.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/PTX 1.2.1...
  884.     $(MAKE) wermit "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DPTX \
  885.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \
  886.     "LNKFLAGS = -i"
  887.  
  888. #Sequent DYNIX/PTX 1.3 or 1.4
  889. dynixptx13:
  890.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/PTX 1.3 TCP/IP...
  891.     $(MAKE) wermit "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DPTX  -O \
  892.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DTCPSOCKET $(KFLAGS) -i" \
  893.     "LNKFLAGS = -i" "LIBS = -lsocket -linet -lnsl"
  894.  
  895. #Sequent Dynix/PTX 2.0, ANSI C compilation
  896. dynixptx20:
  897.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent Dynix/PTX 2.0...'
  898.     $(MAKE) wermit "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  899.     -DWAIT_T=int -DNOSETBUF -DPTX  -O" \
  900.     "LIBS = -lsocket -linet -lnsl"
  901.  
  902. #Sequent Dynix/PTX 2.0, ANSI C compilation, with curses
  903. dynixptx20c:
  904.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent Dynix/PTX 2.0...'
  905.     $(MAKE) wermit "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  906.     -DWAIT_T=int -DNOSETBUF -DPTX  -DCK_CURSES -O" \
  907.     "LIBS = -lsocket -linet -lnsl -lcurses -ltermcap"
  908.  
  909. #Sequent Dynix 3.0.x
  910. dynix3:
  911.     @echo Making C-Kermit $(CKVER) for Sequent Dynix 3.0.x...
  912.     $(MAKE) wermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O \
  913.     -DPWUID_T=int -DGID_T=int $(KFLAGS)"
  914.  
  915. #Sequent Dynix 3.0.x, no ACUCNTRL
  916. dynix3noacu:
  917.     @echo Making C-Kermit $(CKVER) for Sequent Dynix 3.0.x...
  918.     $(MAKE) wermit "CFLAGS= -DBSD43 -DLCKDIR -DTCPSOCKET -O \
  919.     -DUID_T=int -DGID_T=int $(KFLAGS)"
  920.  
  921. #Sequent Dynix 3.1.x
  922. dynix31:
  923.     @echo Making C-Kermit $(CKVER) for Sequent Dynix 3.1.x...
  924.     $(MAKE) wermit "CFLAGS= -O -DDYNAMIC -DDCLPOPEN -DLCKDIR -DBSD4 \
  925.     -DTCPSOCKET $(KFLAGS)"
  926.  
  927. #Sequent Dynix 3.1.2, as above but with curses, to be compiled by gcc 2.3.3.
  928. dynix31c:
  929.     @echo 'Making C-Kermit $(CKVER) for Sequent Dynix 3.1.2, curses...'
  930.     $(MAKE) wermit "CFLAGS= -O2 -DDYNAMIC -DDCLPOPEN -DACUCNTRL \
  931.     -DBSD43 -DTCPSOCKET -DCK_CURSES -DNOSETBUF -DUID_T=int \
  932.     $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  933.  
  934. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  935. encore:
  936.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=$(KFLAGS)"
  937.  
  938. #Encore, as above, but with curses file transfer display included.
  939. encorec:
  940.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  941.     "LIBS= -lcurses -ltermcap"
  942.  
  943. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  944. umax43:
  945.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3...
  946.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 wermit \
  947.     "CFLAGS= -DBSD43 -DENCORE -DDYNAMIC -DKANJI -DTCPSOCKET $(KFLAGS) -O"
  948.  
  949. #Encore, UMAX 4.2 (BSD)
  950. umax42:
  951.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
  952.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 wermit \
  953.     "CFLAGS= -DBSD4 -DENCORE -DDYNAMIC -DTCPSOCKET $(KFLAGS) -O"
  954.  
  955. #Encore 88K UMAX 5.3 with TCP/IP support
  956. encore88K:
  957.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
  958.     $(MAKE) wermit "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \
  959.     -DHDBUUCP -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS ="
  960.  
  961. #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
  962. #C-Kermit(5A) is simply too large (even turning off almost every feature
  963. #available) to run without both I&D space plus overlays.  The old comment
  964. #suggested running 'pcc' but that won't help.  Changing 'cc' to 'ckustr.sed'
  965. #will cause a string extraction to be done, saving D space by moving strings
  966. #to a file.
  967. bsd29:
  968.     @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD.
  969.     @echo Read the makefile if you have trouble with this...
  970.     $(MAKE) ovwermit \
  971.     "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \
  972.     -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \
  973.     "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
  974.  
  975. #Convex C1 with Berkeley Unix
  976. convex:
  977.     @echo Making C-Kermit $(CKVER) for Convex C1 / BSD...
  978.     $(MAKE) wermit "CFLAGS= -DBSD4 $(KFLAGS) -Dmsleep=mnap"
  979.  
  980. #Convex C210 with Convex/OS 8
  981. convex8:
  982.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8
  983.     $(MAKE) wermit \
  984.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \
  985.     -DDYNAMIC $(KFLAGS) -DSIG_V -Dmsleep=mnap"
  986.  
  987. #Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)
  988. #with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.
  989. convex9:
  990.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1
  991.     $(MAKE) wermit \
  992.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  993.     -DDYNAMIC -D__STDC__ -DLCKDIR -Dmsleep=mnap -O -ext -tm c1 $(KFLAGS)" \
  994.     "LNKFLAGS = -ext"
  995.  
  996. #Convex C2 with Convex OS 10.1 or later
  997. #with gcc 2.x C compiler
  998. convex10gcc:
  999.     @echo Making C-Kermit $(CKVER) for Convex C2 with OS 10.1 using gcc
  1000.     $(MAKE) wermit \
  1001.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  1002.     -DDYNAMIC -D__STDC__  -Dmsleep=mnap -O2 $(KFLAGS)" CC=gcc CC2=gcc
  1003.  
  1004. #Cray X-MP or Y-MP UNICOS 6.x or 7.x.
  1005. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  1006. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  1007. cray:
  1008.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 6.x or 7.0...
  1009.     $(MAKE) wermit NPROC=1 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  1010.     $(KFLAGS) -O1"
  1011.  
  1012. #Cray X-MP or Y-MP UNICOS 8.0 Alpha.
  1013. cray8:
  1014.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 8.0 Alpha...
  1015.     $(MAKE) wermit NPROC=1 "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  1016.     $(KFLAGS) -O1"
  1017.  
  1018. #Cray-2 or Cray 3-CSOS
  1019. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  1020. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  1021. craycsos:
  1022.     @echo 'Making C-Kermit $(CKVER) for Cray-2/3 CSOS
  1023.     $(MAKE) wermit NPROC=1 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  1024.     $(KFLAGS) -DCK_ANSIC -DCK_CURSES" "LIBS=-lnet"
  1025.  
  1026. #Charles River Data Systems Universe with UNOS Version 9.2
  1027. crds:
  1028.     @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...'
  1029.     make wermit \
  1030.     "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DDYNAMIC -DLONGFN -DTCPSOCKET \
  1031.     -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETREU \
  1032.     -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="
  1033.  
  1034. #NeXTSTEP 1.0 through 3.0.
  1035. #Includes fullscreen file transfer display (curses) and TCP/IP support.
  1036. #Uses shared library to make executable program about 80K smaller.
  1037. #Remove "LIBS = -lsys_s" if this causes trouble.
  1038. next:
  1039.     @echo Making C-Kermit $(CKVER) for NeXT...
  1040.     $(MAKE) wermit \
  1041.     "CFLAGS= -DNEXT -DNOSETBUF -DTCPSOCKET -DDYNAMIC -DLCKDIR -DKANJI \
  1042.     -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  1043.  
  1044. nextc:
  1045.     $(MAKE) "MAKE=$(MAKE)" next
  1046.  
  1047. nextg:
  1048.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall
  1049.  
  1050. nextgc:
  1051.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall
  1052.  
  1053. #POSIX
  1054. posix:
  1055.     @echo 'Making C-Kermit $(CKVER) for POSIX, no UUCP lockfile support...'
  1056.     $(MAKE) wermit "CFLAGS= -DPOSIX -DNOUUCP $(KFLAGS) -O"
  1057.  
  1058. #POSIX, BSDI-style.
  1059. bsdiposix:
  1060.     @echo 'Making C-Kermit $(CKVER) for BSDI/386 POSIX...'
  1061.     $(MAKE) wermit "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
  1062.     -DDYNAMIC -DNOSETBUF -DLOCK_DIR=\\\"/var/spool/uucp\\\" $(KFLAGS) -O"
  1063.  
  1064. # make 386bsd 0.0new, posix
  1065. # for  386bsd 0.1.24, change /usr/include/termios.h to #define NCCS if
  1066. #  _POSIX_SOURCE is #defined. (source: lewine, posix prgmrs guide, o`reilly)
  1067. 386bsd:
  1068.     @echo 'Making C-Kermit $(CKVER) for jolix 386BSD 0.0new and 0.1.24...'
  1069.     $(MAKE) wermit "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
  1070.     -D_386BSD -DCK_CURSES -DTCPSOCKET -DDYNAMIC -DNOSETBUF \
  1071.     -DLOCK_DIR=\\\"/var/spool/uucp\\\" \
  1072.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  1073.  
  1074. #Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1
  1075. pyramid:
  1076.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  1077.     ucb $(MAKE) wermit "CFLAGS= -DBSD43 -DTCPSOCKET -DDYNAMIC \
  1078.     -DPYRAMID -O $(KFLAGS)" "LNKFLAGS = -s"
  1079.  
  1080. #Pyramid Dual Port OSx using HonyDanBer UUCP, curses and TCP
  1081. pyramid-hdb:
  1082.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  1083.     ucb $(MAKE) wermit "CFLAGS= -DBSD43 -DTCPSOCKET -DDYNAMIC \
  1084.     -DHBDUUCP -DCK_CURSES -O $(KFLAGS)" \
  1085.     "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  1086.  
  1087. #Pyramid DC/OSx (UNIX System V R4).
  1088. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  1089. #are not misplaced in sys (rather than netinet and arpa, respectively).
  1090. #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
  1091. #NOTE: Remove -O and Olimit:1500 from CFLAGS if TELNET connections do not work.
  1092. pyrdcosx:
  1093.     @echo 'Making C-Kermit $(CKVER) for Pyramid DC/OSx...'
  1094.     $(MAKE) wermit "CFLAGS = -Xa -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1095.     -DCK_CURSES -DSTERMIOX -DTCPSOCKET -DPYRAMID -K Olimit:1500 \
  1096.     $(KFLAGS)" "LIBS= -lcurses -lsocket -lnsl" "LNKFLAGS = -s"
  1097.  
  1098. #SONY NEWS, NEWS-OS 4.01C
  1099. sonynews:
  1100.     @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
  1101.     $(MAKE) wermit "CFLAGS= -DBSD43 -DKANJI -DACUCNTRL \
  1102.     -DTCPSOCKET -O"
  1103.  
  1104. #SUNPOSIX
  1105. #SunOS 4.1.x in the POSIX universe (but with HDB UUCP added)...
  1106. sunposix:
  1107.     @echo Making C-Kermit $(CKVER) for POSIX...
  1108.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2= /usr/5bin/cc " \
  1109.     "CFLAGS= -DPOSIX -DHDBUUCP -DVOID=void -O"
  1110.  
  1111. #IBM's AIX 3.0 on IBM 370 mainframe, tested on AIX F44 thru F50.
  1112. aix370:
  1113.     @echo Making C-Kermit $(CKVER) for IBM System/370 AIX 3.0...
  1114.     $(MAKE) wermit \
  1115.     "CFLAGS= -DAIX370 -DTCPSOCKET -DLCKDIR -DDIRENT -DDYNAMIC $(KFLAGS)" \
  1116.     "LIBS = -lbsd"
  1117.  
  1118. #IBM's AIX/ESA 2.1 (OSF/1) on IBM mainframe
  1119. aixesa:
  1120.     @echo Making C-Kermit $(CKVER) for IBM AIX/ESA...
  1121.     $(MAKE) wermit "CFLAGS= -DAIXESA -DDYNAMIC -DTCPSOCKET $(KFLAGS) -O"
  1122.  
  1123. #IBM's AIX 1.3 on IBM PS/2, tested on AIX F44 thru F50.
  1124. #This is exactly the same as AIX370 except for the version herald.
  1125. ps2aix3:
  1126.     @echo Making C-Kermit $(CKVER) for IBM PS/2 AIX 3.0...
  1127.     $(MAKE) wermit \
  1128.     "CFLAGS= -DAIXPS2 -DTCPSOCKET -DLCKDIR -DDIRENT -DDYNAMIC $(KFLAGS)" \
  1129.     "LIBS = -lbsd"
  1130.  
  1131. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000.
  1132. rs6000:
  1133.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  1134.     $(MAKE) wermit \
  1135.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DDYNAMIC -DCK_ANSIC \
  1136.     -DCK_POLL -DNOSETBUF -DCLSOPN -DKANJI -O $(KFLAGS)" "LNKFLAGS = -s"
  1137.  
  1138. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000, with curses.
  1139. rs6000c:
  1140.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  1141.     $(MAKE) wermit \
  1142.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DDYNAMIC -DCK_ANSIC \
  1143.     -DCK_POLL -DNOSETBUF -DCLSOPN -DCK_CURSES -DKANJI -O $(KFLAGS)" \
  1144.     "LIBS= -lcurses -ltermcap" "LNKFLAGS = -s"
  1145.  
  1146. #IBM AIX 3.2 for RISC System/6000.
  1147. #In case of "subprogram too complex" warnings, add "-qmaxmem=4000" to CFLAGS.
  1148. rs6aix32:
  1149.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000...
  1150.     $(MAKE) wermit \
  1151.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DDYNAMIC -DCK_ANSIC \
  1152.     -DCLSOPN -DKANJI -DCK_POLL -O $(KFLAGS)" "LNKFLAGS = -s"
  1153.  
  1154. #IBM AIX 3.2 for RISC System/6000.
  1155. #In case of "subprogram too complex" warnings, add "-qmaxmem=4000" to CFLAGS.
  1156. rs6aix32c:
  1157.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000, curses...
  1158.     $(MAKE) wermit \
  1159.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DDYNAMIC -DCK_ANSIC \
  1160.     -DCLSOPN -DCK_CURSES -DKANJI -DCK_POLL -O $(KFLAGS)" "LNKFLAGS = -s" \
  1161.     "LIBS=-lcurses"
  1162.  
  1163. #Sun UNIX 3.5 with gcc 2.3.3.
  1164. sunos3gcc:
  1165.     @echo Making C-Kermit $(CKVER) for Sun UNIX 3.5 and gcc...
  1166.     $(MAKE) wermit CC=gcc CC2=gcc \
  1167.     CFLAGS="-g -O -DBSD4 -DTCPSOCKET $(KFLAGS)"
  1168.  
  1169. #SunOS version 4.0, BSD environment, has saved original euid feature.
  1170. # Add "CC=/usr/ucb/cc CC2=/usr/ucb/cc" if necessary.
  1171. sunos4:
  1172.     @echo Making C-Kermit $(CKVER) for SunOS 4.0, BSD environment...
  1173.     $(MAKE) wermit "CFLAGS= -O -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID \
  1174.     -DKANJI -DDYNAMIC $(KFLAGS)"
  1175.  
  1176. #As above, but with SunLink X.25 support
  1177. sunos4x25:
  1178.     @echo SunLink X.25 support
  1179.     $(MAKE) "MAKE=$(MAKE)" sunos4 "KFLAGS=$(KFLAGS) -DSUNX25"
  1180.  
  1181. #SUN OS version 4.1, BSD environment, has saved original euid feature.
  1182. #Uses Honey DanBer UUCP.  Requires presence of /usr/spool/locks directory.
  1183. # /var/spool/ should be a symbolic link to  /usr/spool/.
  1184. # ... or 'make wermit "CC= /usr/ucb/cc " \'
  1185. sunos41:
  1186.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD...
  1187.     $(MAKE) wermit \
  1188.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET -DNOSETBUF \
  1189.     -DKANJI -DSAVEDUID -DDYNAMIC $(KFLAGS)"
  1190.  
  1191. #As above, but compile with gcc.  Reportedly gives 24-32K size reduction
  1192. #with gcc 2.1 or 2.2.2.  CAUTION: make sure "fixincludes" has been run on
  1193. #the include files, so gcc's are in sync with the regular Sun ones!
  1194. #Includes the curses library for fullscreen file transfer display.
  1195. sunos41gcc:
  1196.     @echo Making C-Kermit $(CKVER) for SunOS 4.1/BSD with gcc and curses...
  1197.     $(MAKE) wermit "CC= gcc " "CC2= gcc" \
  1198.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET -DNOSETBUF \
  1199.     -DSAVEDUID -DDYNAMIC -DKANJI -DCK_CURSES $(KFLAGS)" \
  1200.     "LIBS= -lcurses -ltermcap"
  1201.  
  1202. #SUNOS 4.1 as sunos41 above, but also with curses support
  1203. sunos41c:
  1204.     @echo Curses support
  1205.     $(MAKE) "MAKE=$(MAKE)" sunos41 "KFLAGS=$(KFLAGS) -DCK_CURSES" \
  1206.     "LIBS= -lcurses -ltermcap"
  1207.  
  1208. #SUNOS 4.1 with SunLink X.25 support
  1209. sunos41x25:
  1210.     @echo SunLink X.25 support
  1211.     $(MAKE) "MAKE=$(MAKE)" sunos41 "KFLAGS=$(KFLAGS) -DSUNX25"
  1212.  
  1213. #SUNOS 4.1 with SunLink X.25 support
  1214. sunos41x25c:
  1215.     @echo SunLink X.25 support, curses
  1216.     $(MAKE) "MAKE=$(MAKE)" sunos41c "KFLAGS=$(KFLAGS) -DSUNX25"
  1217.  
  1218. #SUN with Solaris 2.0 = SunOS 5.0.
  1219. #Mostly the same as System V R4.
  1220. #The nsl library contains a partab symbol, so Kermit's must be redefined.
  1221. sunsol20:
  1222.     @echo 'Making C-Kermit $(CKVER) for Sun with Solaris 2.0 and curses...'
  1223.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DSOLARIS -Dpartab=partbl \
  1224.     -DDIRENT -DHDBUUCP -DDYNAMIC -DSTERMIOX -DTCPSOCKET -DCK_CURSES \
  1225.     -DCK_POLL $(KFLAGS)" \
  1226.     "LIBS= -lsocket -lnsl -lcurses -ltermlib" "LNKFLAGS = -s"
  1227.  
  1228. #SUN with Solaris 2.0.
  1229. #As above, but built with the gcc compiler from the CD-ROM.
  1230. sunsol20gcc:
  1231.     @echo 'Making C-Kermit $(CKVER) for Sun Solaris 2.0, gcc, and curses..'
  1232.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DSOLARIS -Dpartab=partbl \
  1233.     -DDIRENT -DHDBUUCP -DDYNAMIC -DSTERMIOX -DTCPSOCKET -DCK_CURSES \
  1234.     -DCK_POLL $(KFLAGS)" \
  1235.     "LIBS= -lsocket -lnsl -lcurses -ltermlib" "LNKFLAGS = -s" \
  1236.     CC=/opt/cygnus-sol2-1.1/bin/gcc CC2=/opt/cygnus-sol2-1.1/bin/gcc
  1237.  
  1238. #SunOS 5.1 = Solaris 2.1.
  1239. #NOTE: A C compiler is no longer bundled with SunOS 5.1, so to compile C
  1240. #programs, you might have to change your PATH to include the directory
  1241. #/usr/ccs/bin AFTER the directory containing the compiler.  SunPRO C is
  1242. #installed by default in /opt/SUNWspro/bin.  So a sample PATH might be:
  1243. #
  1244. # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:
  1245. # /usr/ucb:/usr/sbin:/sbin:.
  1246. #
  1247. #NOTE 2: Compilation with the Apogee C compiler (apcc) might not work,
  1248. #because it refuses to allow "-Usun".  Reportedly, newer releases of apcc
  1249. #(such as 1.057) work OK, use: "make -e sunos51 CC=apcc CC2=apcc".
  1250. sunos51:
  1251.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.x....'
  1252.     $(MAKE) wermit "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP \
  1253.     -DCK_POLL -DDYNAMIC -DNODEBUG -DSTERMIOX $(KFLAGS)" "LNKFLAGS = -s"
  1254.  
  1255. #As above, but with gcc.  Tested with gcc 2.3.3.
  1256. sunos51cgcc:
  1257.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.x with gcc....'
  1258.     $(MAKE) wermit CC=gcc CC2=gcc "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS \
  1259.     -DCK_POLL -DCK_CURSES -DDIRENT -DHDBUUCP -DDYNAMIC $(KFLAGS)" \
  1260.     "LIBS= -ltermlib"
  1261.  
  1262. #SunOS 5.1.  As above, but with TCP/IP support added.
  1263. #partab redefined to avoid conflict with /usr/lib/libnsl.so.
  1264. sunos51tcp:
  1265.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.1 + TCP....'
  1266.     $(MAKE) wermit "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP \
  1267.     -Dpartab=partbl -DCK_POLL -DDYNAMIC -DNODEBUG -DSTERMIOX \
  1268.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" "LIBS= -lsocket -lnsl"
  1269.  
  1270. #SunOS 5.1.  As above, but with TCP/IP and curses support added.
  1271. sunos51tcpc:
  1272.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.1 + TCP + curses....'
  1273.     $(MAKE) wermit "CFLAGS = -O -Usun -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP \
  1274.     -DDYNAMIC -Dpartab=partbl -DCK_POLL -DCK_CURSES -DNODEBUG -DSTERMIOX \
  1275.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl"
  1276.  
  1277. #The following sunosxxx entries are for debugging and testing only.
  1278.  
  1279. #As above, debugging with Pure Software, Inc., Purify 2 (commercial runtime
  1280. #error-detection software).
  1281. #Before running the resulting wermit, you'll also need to define and export
  1282. #the following environment variables (as in this example):
  1283. #PURIFYHOME=/usr/local/purify ; export PURIFYHOME
  1284. #PURIFYCACHEDIR=/tmp ; export PURIFYCACHEDIR
  1285. sunos41cp:
  1286.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD / Curses / Purify...
  1287.     $(MAKE) wermit "CC2= purify -cache_dir=/usr/tmp cc" \
  1288.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET -DNOSETBUF \
  1289.     -DKANJI -DSAVEDUID -DDYNAMIC -DCK_CURSES $(KFLAGS)" \
  1290.     "LIBS= -lcurses -ltermcap"
  1291.  
  1292. #SUN OS version 4.1, gcc, profiling with gprof, no debugging.
  1293. #To get profile, "make sunos4p" (on Sun), then "./wermit".  After running
  1294. #wermit, "gprof ./wermit | lpr" (or whatever) to get execution profile.
  1295. sunos41p:
  1296.     @echo Making C-Kermit $(CKVER) for SunOS 4.x with profiling...
  1297.     $(MAKE) wermit "CC= gcc " "CC2= gcc" \
  1298.     "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET \
  1299.     -DDYNAMIC $(KFLAGS) -pg" "LNKFLAGS = -pg"
  1300.  
  1301. #SUN OS version 4.0, BSD environment, minimum size...
  1302. sunos4m:
  1303.     @echo Minimum size
  1304.     $(MAKE) "MAKE=$(MAKE)" sunos4 \
  1305.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  1306.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND" "LNKFLAGS = -s"
  1307.  
  1308. #SUN OS version 4.1, BSD environment, minimum size...
  1309. sunos41m:
  1310.     @echo Minimum size
  1311.     $(MAKE) "MAKE=$(MAKE)" sunos41 \
  1312.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  1313.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
  1314.  
  1315. #SUN OS version 4.0, BSD environment, minimum size w/command parser.
  1316. sunos4mi:
  1317.     @echo Minimum interactive
  1318.     $(MAKE) "MAKE=$(MAKE)" sunos4 \
  1319.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS \
  1320.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
  1321.     -DNOSETKEY -DNOSHOW -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1322.  
  1323. #SUN OS version 4.1 or later, BSD environment, minimum size w/command parser.
  1324. sunos41mi:
  1325.     @echo Minimum interactive
  1326.     $(MAKE) "MAKE=$(MAKE)" sunos41 \
  1327.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS \
  1328.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
  1329.     -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
  1330.     -DNOSETBUF -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  1331.     -DNOCMDL -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1332.  
  1333. #SUN OS version 4.1 or later, BSD, no debugging log.
  1334. sunos41nd:
  1335.     @echo No debugging...
  1336.     $(MAKE) "MAKE=$(MAKE)" sunos41 "KFLAGS=$(KFLAGS) -DNODEBUG"
  1337.  
  1338. #SUNOS 4.1 with malloc debugger
  1339. sunos41md:
  1340.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 malloc debug...
  1341.     $(MAKE) mermit \
  1342.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  1343.     -DSAVEDUID -DDYNAMIC $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
  1344.  
  1345. #SUN OS version 4.0, System V R3 environment (-i option omitted).
  1346. sunos4s5:
  1347.     @echo Making C-Kermit $(CKVER) for SunOS 4.0, System V R3...
  1348.     @echo For testing purposes only - NOT for production use.
  1349.     @echo For a useable version, make sunos4 instead.
  1350.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2= /usr/5bin/cc " \
  1351.     "CFLAGS = -DDIRENT -DSUN4S5 -DDYNAMIC $(KFLAGS) -O"
  1352.  
  1353. #SUN OS version 4.1 or later, System V R3 environment (-i option omitted).
  1354. #Like sunos4s5, but SUNOS 4.1 has switched to HDB UUCP lockfile conventions.
  1355. sunos41s5:
  1356.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  1357.     @echo For testing purposes only - NOT for production use.
  1358.     @echo For a useable version, make sunos41 instead.
  1359.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  1360.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DDYNAMIC -DCK_POLL $(KFLAGS) -O"
  1361.  
  1362. #As above, but with curses support
  1363. sunos41s5c:
  1364.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  1365.     @echo Curses included.
  1366.     @echo For testing purposes only - NOT for production use.
  1367.     @echo For a useable version, make sunos41 instead.
  1368.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  1369.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1370.     -DCK_CURSES -DCK_POLL -DCK_NEWTERM $(KFLAGS) -O" "LIBS= -lcurses"
  1371.  
  1372. #As above, but with curses support AND net support
  1373. sunos41s5tcpc:
  1374.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  1375.     @echo TCP/IP and curses included.  No debug log.
  1376.     @echo For testing purposes only - NOT for production use.
  1377.     @echo For a useable version, make sunos41 instead.
  1378.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  1379.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOSETBUF -DCK_POLL \
  1380.     -DNODEBUG -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET $(KFLAGS) -O" \
  1381.     "LIBS= -lcurses -lresolv"
  1382.  
  1383. #Apollo with Domain SR10.0 or later, BSD environment
  1384. #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
  1385. #Reportedly, there is also a problem with getc & putc macros that can
  1386. #be handled by using '#ifdef apollo' somewhere to redefine them???
  1387. #On the other hand, other reports indicate that it works fine as-is.
  1388. #NOTE: This entry was previously like this:
  1389. #    $(MAKE) wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis \
  1390. #    -DTCPSOCKET -U__STDC__"
  1391. #Reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
  1392. #in addition to an older one that claimed to be ANSI-compliant but wasn't.
  1393. #The following make entry (plus checks that are made in ckcdeb.h) detect
  1394. #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
  1395. sr10-bsd:
  1396.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
  1397.     $(MAKE) wermit \
  1398.     "CFLAGS= -O -DDYNAMIC -DBSD43 -DTCPSOCKET -DCK_CURSES \
  1399.     -Uaegis $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  1400.  
  1401. #Apollo with Domain SR10.0 or later, System V R3 environment.
  1402. #Don't use the optimizer (-O), it causes problems at runtime.
  1403. sr10-s5r3:
  1404.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
  1405.     $(MAKE) wermit "CFLAGS= -DNOFILEH -DSVR3 $(KFLAGS) -Uaegis -U__STDC__"
  1406.  
  1407. #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
  1408. # -DTCPSOCKET -DYNAMIC can probably be added here.
  1409. apollobsd:
  1410.     @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
  1411.     $(MAKE) wermit "CC= /bin/cc " "CC2= /bin/cc " \
  1412.     "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis"
  1413.  
  1414. #Version 7 Unix (see comments near top of makefile)
  1415. v7:
  1416.     @echo Making C-Kermit $(CKVER) for UNIX Version 7.
  1417.     @echo Read the makefile if you have trouble with this...
  1418.     $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  1419.     -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  1420.     -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
  1421.     $(KFLAGS)"
  1422.  
  1423. #AT&T UNIX System V R3, signal() is void rather than int.
  1424. #Uses dirent.h and Honey DanBer UUCP.
  1425. #Add the -i link option if necessary.
  1426. sys5r3:
  1427.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  1428.     $(MAKE) wermit \
  1429.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC $(KFLAGS) -O" \
  1430.     "LNKFLAGS="
  1431.  
  1432. #AT&T UNIX System V R3.  As above, but no ANSI prototyping.
  1433. sys5r3na:
  1434.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  1435.     $(MAKE) wermit \
  1436.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOANSI $(KFLAGS) -O" \
  1437.     "LNKFLAGS="
  1438.  
  1439. #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
  1440. sys5r3net3b:
  1441.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
  1442.     $(MAKE) wermit \
  1443.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DWOLLONGONG $(KFLAGS) \
  1444.     -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
  1445.  
  1446. #AT&T UNIX System V R3, signal() is void rather than int.
  1447. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  1448. #Has <termiox.h> for RTS/CTS flow control.
  1449. sys5r3tx:
  1450.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  1451.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1452.     -DTERMIOX $(KFLAGS) -i -O" "LNKFLAGS ="
  1453.  
  1454. #AT&T UNIX System V R3, signal() is void rather than int.
  1455. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  1456. #Has <sys/termiox.h> for RTS/CTS flow control.
  1457. sys5r3sx:
  1458.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  1459.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1460.     -DSTERMIOX $(KFLAGS) -i -O" "LNKFLAGS ="
  1461.  
  1462. #AT&T UNIX System V R4.
  1463. #Has <termiox.h>.
  1464. sys5r4:
  1465.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1466.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1467.     -DTERMIOX $(KFLAGS)" "LNKFLAGS = -s"
  1468.  
  1469. #AT&T UNIX System V R4 with Wollongong TCP/IP.
  1470. #Has <termiox.h>.
  1471. sys5r4net:
  1472.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1473.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1474.     -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  1475.  
  1476. #DELL UNIX System V R4.
  1477. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  1478. #are not misplaced in sys (rather than netinet and arpa, respectively).
  1479. #Uses ANSI C constructs, advisory file locking on devices, etc.
  1480. #Warning: -DSTERMIOX enables hardware flow control (RTS/CTS), but reportedly
  1481. #this does not work with the normal drivers.  However, it might still work
  1482. #on non-Dell systems, or even Dell systems with different drivers installed.
  1483. dellsys5r4:
  1484.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  1485.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  1486.     -DDYNAMIC -DTCPSOCKET -DSTERMIOX -DCK_POLL -DKANJI $(KFLAGS)" \
  1487.     "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
  1488.  
  1489. #As above, curses support added...
  1490. dellsys5r4c:
  1491.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  1492.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  1493.     -DDYNAMIC -DTCPSOCKET -DSTERMIOX -DKANJI -DCK_CURSES -DCK_POLL \
  1494.     $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  1495.  
  1496. #Mininum interactive: As above, but with every conceivable option removed.
  1497. dellsys5r4mi:
  1498.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  1499.     @echo 'Minimum-size interactive'
  1500.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  1501.     -DDYNAMIC -UTCPSOCKET -DNOCMDL -DNOSPL -DNOXMIT -DCK_POLL \
  1502.     -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  1503.     -DNOSCRIPT -DNOCSETS -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
  1504.     -DNOSETBUF -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ  \
  1505.     $(KFLAGS)" "LNKFLAGS = -s"
  1506.  
  1507. #Command-line only version.
  1508. dellsys5r4m:
  1509.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  1510.     @echo 'Command-line only'
  1511.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DDYNAMIC \
  1512.     -UTCPSOCKET -DNOICP -DNOFRILLS -DNODIAL -DNODEBUG -DNOTLOG -DNOCSETS \
  1513.     -DNOSETKEY -DNOESCSEQ -DNOSETBUF -DNOJC -DNOFDZERO -DCK_POLL \
  1514.     $(KFLAGS)" "LNKFLAGS = -s"
  1515.  
  1516. #AT&T UNIX System V R4.
  1517. #Has <sys/termiox.h>.
  1518. sys5r4sx:
  1519.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1520.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1521.     -DSTERMIOX $(KFLAGS)" "LNKFLAGS = -s"
  1522.  
  1523. #AT&T UNIX System V R4.
  1524. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  1525. #are not misplaced in sys (rather than netinet and arpa, respectively).
  1526. #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
  1527. sys5r4sxtcp:
  1528.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1529.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1530.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  1531.     "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
  1532.  
  1533. #Univel UnixWare
  1534. unixware:
  1535.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx "KFLAGS=-DUNIVEL"
  1536.  
  1537. #Smallest possible version of above
  1538. s5r4m:
  1539.     @echo Minimum size
  1540.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
  1541.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  1542.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
  1543.  
  1544. #Smallest possible interactive version of above
  1545. s5r4mi:
  1546.     @echo Minimum interactive
  1547.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
  1548.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW \
  1549.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY \
  1550.     -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1551.  
  1552. #AT&T UNIX System V R4, has <sys/termiox.h>
  1553. #ANSI C function prototyping disabled.
  1554. sys5r4sxna:
  1555.     @echo No ANSI C prototyping...
  1556.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx "KFLAGS=$(KFLAGS) -DNOANSI"
  1557.  
  1558. #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
  1559. #Has <sys/termiox.h>.
  1560. svr4amiganet:
  1561.     @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
  1562.     $(MAKE) wermit "CC=gcc" "CC2=gcc" \
  1563.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC -DSTERMIOX \
  1564.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" "LIBS = -lsocket -lnsl"
  1565.  
  1566. #ESIX SVR4.0.3 with TCP/IP support.
  1567. #Has <sys/termiox.h>, ANSI C function prototyping disabled.
  1568. esixr4:
  1569.     @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
  1570.     $(MAKE) wermit \
  1571.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOANSI \
  1572.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" \
  1573.     "LIBS = -lsocket -lnsl"
  1574.  
  1575. #AT&T UNIX System V R4.
  1576. #Has <sys/termiox.h>, Wollongong TCP/IP.
  1577. sys5r4sxnet:
  1578.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1579.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1580.     -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  1581.  
  1582. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
  1583. sys5r4nx:
  1584.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1585.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1586.     $(KFLAGS)" "LNKFLAGS = -s"
  1587.  
  1588. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, has Wollongong TCP/IP.
  1589. sys5r4nxnet:
  1590.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1591.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1592.     -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  1593.  
  1594. #ICL UNIX System V R4.(DRS N/X) version :-
  1595. #UNIX System V Release 4.0 ICL DRS 6000 (SPARC)
  1596. #DRS/NX 6000 SVR4 Version 5  Level 1  Increment 4
  1597. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  1598. #are not misplaced in sys (rather than netinet and arpa, respectively).
  1599. #Uses ANSI C constructs, advisory file locking on devices, etc.
  1600. iclsys5r4:
  1601.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
  1602.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP \
  1603.     -DDYNAMIC -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  1604.     "LIBS= -lsocket " "LNKFLAGS = -s"
  1605.  
  1606. #ICL UNIX System V R4.(DRS N/X) version :-
  1607. #UNIX System V Release 4.0 ICL DRS 3000 (486)
  1608. #DRS/NX 6000 SVR4 Version 5  Level 1  Increment 4
  1609. #As above, but also needs -lnsl.
  1610. iclsys5r4_486:
  1611.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
  1612.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP \
  1613.     -DDYNAMIC -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  1614.     "LIBS= -lsocket -lnsl " "LNKFLAGS = -s"
  1615.  
  1616. #Data General DG/UX 4.30 (System V R3) for DG Aviion, with TCP/IP support.
  1617. dgux430:
  1618.     @echo 'Making C-Kermit $(CKVER) for DG Aviion DG/UX 4.30...'
  1619.     $(MAKE) wermit "CFLAGS = -O -DDGUX430 -DSVR3 -DDIRENT -DDYNAMIC \
  1620.     -DTCPSOCKET $(KFLAGS)"
  1621.  
  1622. #Data General DG/UX 4.30 for DG Aviion, with TCP/IP support with BSDisms.
  1623. dgux430bsd:
  1624.     @echo 'Making C-Kermit $(CKVER) for DG Aviion DG/UX 4.30...'
  1625.     $(MAKE) wermit "CFLAGS = -O -DDGUX430 -D_BSD_SOURCE -DBSD4 \
  1626.     -DDYNAMIC -DTCPSOCKET $(KFLAGS)"
  1627.  
  1628. #Data General DG/UX 5.4 (System V R4) for DG Aviion, with TCP/IP support.
  1629. dgux540:
  1630.     @echo 'Making C-Kermit $(CKVER) for DG Aviion DG/UX 5.40...'
  1631.     $(MAKE) wermit "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP \
  1632.     -DKANJI -DDYNAMIC -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1633.  
  1634. dgux54:
  1635.     make dgux540
  1636.  
  1637. #Data General DG/UX 5.4 (= System V R4) for DG Aviion, with TCP/IP support.
  1638. # And curses.
  1639. dgux540c:
  1640.     @echo 'Making C-Kermit $(CKVER) for DG Aviion DG/UX 5.4...'
  1641.     $(MAKE) wermit "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP \
  1642.     -DDYNAMIC -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  1643.     "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  1644.  
  1645. dgux54c:
  1646.     make dgux540c
  1647.  
  1648. #Silicon Graphics System V R3 with BSD file system (IRIS)
  1649. iris:
  1650.     @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
  1651.     $(MAKE) wermit "CFLAGS = -O -DSVR3 -DLONGFN  $(KFLAGS) \
  1652.     -I/usr/include/bsd" "LIBS = -lbsd"
  1653.  
  1654. #Silicon Graphics IRIS System V R3
  1655. irix33:
  1656.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
  1657.     $(MAKE) wermit \
  1658.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC $(KFLAGS) -O" \
  1659.     "LNKFLAGS ="
  1660.  
  1661. #Silicon Graphics Iris Indigo with IRIX 4.0.0 or 5.0...
  1662. #Strict ANSI C compilation, TCP/IP support included
  1663. irix40:
  1664.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  1665.     $(MAKE) wermit \
  1666.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DPWID_T=uid_t \
  1667.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -Olimit 1350 -I/usr/include/bsd"
  1668.  
  1669. #As above, but with fullscreen display (curses) and Sun Yellow Pages support.
  1670. irix40ypc:
  1671.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0.'
  1672.     @echo 'Includes fullscreen file display and Sun Yellow Pages...'
  1673.     $(MAKE) wermit \
  1674.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DCK_CURSES \
  1675.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET $(KFLAGS) \
  1676.     -O -Olimit 1350 -I/usr/include/bsd" \
  1677.     "LIBS = -lcurses -lsun" "LNKFLAGS = -s"
  1678.  
  1679. #In case they type "make sys5"...
  1680. sys5:
  1681.     $(MAKE) "MAKE=$(MAKE)" sys3
  1682.  
  1683. #Generic ATT System III or System V (with I&D space)
  1684. sys3:
  1685.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  1686.     @echo 'or System V R2 or earlier...'
  1687.     $(MAKE) wermit "CFLAGS = -DATTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1688.  
  1689. #Generic ATT System III or System V R2 or earlier, "no void":
  1690. #special entry to remove "Illegal pointer combination" warnings.
  1691. sys3nv:
  1692.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  1693.     @echo 'or System V R2 or earlier...'
  1694.     $(MAKE) wermit "CFLAGS = -DATTSV -Dvoid=int  $(KFLAGS) -i -O" \
  1695.     "LNKFLAGS = -i"
  1696.  
  1697. #Generic ATT System III or System V (no I&D space)
  1698. sys3nid:
  1699.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  1700.     @echo 'or System V R2 or earlier, no I&D space...'
  1701.     $(MAKE) wermit "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS ="
  1702.  
  1703. #AT&T 7300/UNIX PC (3B1) systems, sys3 but special handling for internal modem.
  1704. #Link with the shared library -- the conflict with openi in shared library
  1705. #is solved with -Dopeni=xopeni
  1706. sys3upc:
  1707.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  1708.     @echo 'If shared lib causes trouble, use make sys3upcold.'
  1709.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF $(KFLAGS) \
  1710.     -Dopeni=xopeni" \
  1711.     "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
  1712.  
  1713. #AT&T 7300/UNIX PC (3B1) systems, with curses support.
  1714. #Curses and the shared library don't get along, so we don't use the
  1715. #shared library.  We need to include CK_NEWTERM to avoid a conflict
  1716. #with curses and buffering on stdout.  Merged with submission by
  1717. #Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu.
  1718. #We don't need -Dopeni=xopeni since we're not using the shared library,
  1719. #but we keep it to be consistent with the other entries.
  1720. sys3upcc:
  1721.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  1722.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF \
  1723.     -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -Dopeni=xopeni" \
  1724.     "LIBS = -lcurses" "LNKFLAGS = -s"
  1725.  
  1726. #AT&T 7300 UNIX PC (3B1), as above, but no newterm().
  1727. sys3upcx:
  1728.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  1729.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF \
  1730.     -DCK_CURSES $(KFLAGS) -Dopeni=xopeni" \
  1731.     "LIBS = -lcurses -ltermcap" "LNKFLAGS = -s"
  1732.  
  1733. #AT&T 7300/UNIX PC (3B1) systems, with curses and shared library support.
  1734. sys3upcshcc:
  1735.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  1736.     @echo 'With curses.  Requires shcc.'
  1737.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC $(KFLAGS) \
  1738.     -DNOSETBUF -DCK_NEWTERM -DCK_CURSES -Dopeni=xopeni" \
  1739.     "LNKFLAGS = -i -s" "CC = shcc" "CC2 = shcc" "LIBS = -lcurses"
  1740.  
  1741. #AT&T 7300/UNIX PC (3B1) systems, as above, no curses, but use gcc.
  1742. sys3upcg:
  1743.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  1744.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF $(KFLAGS) \
  1745.     -Dopeni=xopeni" \
  1746.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  1747.  
  1748. #AT&T 7300/UNIX PC (3B1) systems, curses and gcc.
  1749. sys3upcgc:
  1750.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  1751.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF \
  1752.     -DCK_CURSES -DIFDEBUG -DCK_NEWTERM $(KFLAGS)" \
  1753.     "CC = gcc" "CC2 = gcc" "LIBS = -lcurses" "LNKFLAGS = -s"
  1754.  
  1755. #AT&T 7300/UNIX PC (3B1) systems, special handling for internal modem.
  1756. #No FULLSCREEN file transfer display (curses).
  1757. sys3upcold:
  1758.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  1759.     $(MAKE) wermit "CFLAGS = -DATT7300 $(KFLAGS) -O" "LNKFLAGS = -i"
  1760.  
  1761. #AT&T 6300 PLUS (warning, -O might make it run out of space).
  1762. #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
  1763. att6300:
  1764.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  1765.     $(MAKE) wermit "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH \
  1766.     $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml"
  1767.  
  1768. #As above, but with curses support.  Debugging disabled to prevent thrashing.
  1769. att6300c:
  1770.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  1771.     $(MAKE) wermit "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOCSETS \
  1772.     -DCK_CURSES -DNODEBUG $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml" \
  1773.     "LIBS = -lcurses"
  1774.  
  1775. #AT&T 6300 PLUS with no curses, no debugging (about 34K smaller)
  1776. # -Optimization saves about 20K too.
  1777. att6300nd:
  1778.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
  1779.     $(MAKE) wermit \
  1780.     "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG -DNOFILEH $(KFLAGS) \
  1781.     -O -i -Ml" "LNKFLAGS = -i -Ml"
  1782.  
  1783. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
  1784. #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
  1785. att3bx:
  1786.     $(MAKE) "MAKE=$(MAKE)" sys3hdb
  1787.  
  1788. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V,
  1789. #with fullscreen file transfer display
  1790. att3bxc:
  1791.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  1792.     @echo 'with Honey DanBer UUCP and curses...'
  1793.     $(MAKE) wermit "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) \
  1794.         -DCK_CURSES -DCK_NEWTERM -i -O" \
  1795.     "LNKFLAGS = -i" "LIBS=-lcurses"
  1796.  
  1797. #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
  1798. sys3hdb:
  1799.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  1800.     @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
  1801.     $(MAKE) wermit "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -i -O" \
  1802.     "LNKFLAGS = -i"
  1803.  
  1804. #Sperry/UNISYS 5000 UTS V 5.2 (System V R2), Honey DanBer UUCP
  1805. unisys5r2:
  1806.     @echo 'Making C-Kermit $(CKVER) for Sperry/UNISYS 5000 UTS V 5.2...'
  1807.     $(MAKE) wermit \
  1808.     "CFLAGS = -DATTSV -DUNISYS52 -DHDBUUCP $(KFLAGS) -i -O" \
  1809.     "LNKFLAGS = -i"
  1810.  
  1811. #In case they say "make sys5hdb" instead of "make sys3hdb"...
  1812. sys5hdb:
  1813.     $(MAKE) "MAKE=$(MAKE)" sys3hdb
  1814.  
  1815. #IBM PS/2 with AIX 1.0.
  1816. #  Reports indicate that -O switch must be omitted.
  1817. #  It is also possible that "made bsd" will work (reports welcome).
  1818. #  One report said "make LIBS=-lbsd bsd" did the trick.
  1819. ps2aix:
  1820.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.0 PS/2...'
  1821.     $(MAKE) wermit \
  1822.     "CFLAGS = -DATTSV -DPS2AIX10 $(KFLAGS) -i" "LNKFLAGS = -i"
  1823.  
  1824. #IBM RT PC with AIX 2.2.1
  1825. #This one has unique and strange lockfiles.
  1826. rtaix:
  1827.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1...'
  1828.     $(MAKE) wermit \
  1829.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DTCPSOCKET \
  1830.     -DCLSOPN $(KFLAGS) -O -w" "LNKFLAGS = -s"
  1831.  
  1832. #IBM RT PC with AIX 2.2.1
  1833. #This one has unique and strange lockfiles.
  1834. rtaixc:
  1835.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1, curses...'
  1836.     $(MAKE) wermit \
  1837.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DTCPSOCKET -DCK_CURSES \
  1838.     -DCLSOPN $(KFLAGS) -O -w" "LIBS=-lcurses" "LNKFLAGS = -s"
  1839.  
  1840. #IBM RT PC with AIX 2.2.1 (BSD 4.3)
  1841. # Add -O, -DDYNAMIC, -s, etc, if they work.
  1842. rtacis:
  1843.     @echo Making C-Kermit $(CKVER) for RT PC with ACIS 2.2.1 = BSD 4.3...
  1844.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET $(KFLAGS) -U__STDC__" \
  1845.     "LNKFLAGS = -s"
  1846.  
  1847. #HP 9000 series 300, 500, 800, no long filenames and no job control.
  1848. #This is certainly only good for HPUX versions earlier than 6.5.
  1849. hpuxpre65:
  1850.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, no long filenames.'
  1851.     $(MAKE) wermit "CFLAGS = -DHPUX -DHPUXPRE65 $(KFLAGS) -O" "LNKFLAGS ="
  1852.  
  1853. #HP 9000 series 300, 500, 800, no long filenames.
  1854. #This is probably only good for HPUX versions earlier than 6.2.
  1855. hpux:
  1856.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, no long filenames.'
  1857.     $(MAKE) wermit "CFLAGS = -DHPUX $(KFLAGS) -O" "LNKFLAGS ="
  1858.  
  1859. #HP-9000 500 HP-UX 5.21 with Wollongong WIN/TCP 1.2 TCP/IP
  1860. #Requires /usr/wins/usr/include and /usr/lib/libnet.a from Wollongong
  1861. hpux500wintcp:
  1862.     @echo 'Making C-Kermit $(CKVER) for HP-9000 500 HP-UX 5.21 WIN/TCP'
  1863.     $(MAKE) wermit "CFLAGS = -DHPUX -DHPUXPRE65 -DTCPSOCKET -DDYNAMIC \
  1864.     -I/usr/wins/usr/include $(KFLAGS) -O" \
  1865.     "LIBS = /usr/lib/libnet.a" "LNKFLAGS = "
  1866.  
  1867. #HP-UX 7.0, no long filenames, no network support.
  1868. hpux7sf:
  1869.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, no long filenames.'
  1870.     $(MAKE) wermit "CFLAGS = -DHPUX $(KFLAGS) -DSIG_V -O" "LNKFLAGS ="
  1871.  
  1872. #HP 9000 series 300, 800, long filenames (using BSD file system)
  1873. # (This one is probably necessary for the Series 300)
  1874. hpuxlf:
  1875.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
  1876.     $(MAKE) wermit \
  1877.     "CFLAGS = -DHPUX -DNDIR -DLONGFN -DDYNAMIC $(KFLAGS) -O" \
  1878.     "LNKFLAGS ="
  1879.  
  1880. #HP 9000 series 300, 800, long filenames (using <dirent.h>)
  1881. hpuxde:
  1882.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
  1883.     $(MAKE) wermit "CFLAGS = -DHPUX -DDIRENT -DDYNAMIC $(KFLAGS) -O" \
  1884.     "LNKFLAGS ="
  1885.  
  1886. #HP 9000 series 300, 800, long filenames (using <dirent.h>) and TCP/IP
  1887. hpuxdetcp:
  1888.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
  1889.     $(MAKE) wermit "CFLAGS = -DHPUX -DDIRENT -DDYNAMIC -DTCPSOCKET \
  1890.     $(KFLAGS) -O" "LNKFLAGS ="
  1891.  
  1892. #HP 9000 series 300, 800, long filenames, System V R3 or later
  1893. # (Does anybody know what is the earliest release of HP-UX based on SVR3?)
  1894. hpuxs5r3:
  1895.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
  1896.     $(MAKE) wermit \
  1897.     "CFLAGS = -DHPUX -DSVR3 -DDIRENT -DTCPSOCKET -DDYNAMIC \
  1898.     -DNOSETBUF $(KFLAGS) -O" "LNKFLAGS =" "LIBS=-lBSD"
  1899.  
  1900. #HP 9000 series 800 HP-UX 7.0, long filenames, network support, HDB uucp.
  1901. #there must be <arpa/telnet.h> & <arpa/inet.h> present to support this
  1902. #configuration.  To use this, you must have bought the ARPA Services
  1903. #Product from HP, and you must get the files "telnet.h" and "inet.h"
  1904. #from the Berkeley Standard Distribution because (reportedly) they are not
  1905. #part of the HP product.  And you need /usr/lib/libBSD.a.
  1906. #
  1907. hpux70lfn:
  1908.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 7.0'
  1909.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1910.     $(MAKE) wermit "CFLAGS = -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1911.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1912.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD"
  1913.  
  1914. hpux70lfnc:
  1915.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 7.0'
  1916.     @echo 'supporting: curses, long filenames, networking, HDB uucp...'
  1917.     $(MAKE) wermit "CFLAGS = -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1918.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1919.     -DTCPSOCKET  -DCK_CURSES $(KFLAGS) -O" \
  1920.     "LIBS= -lcurses -ltermcap -lBSD" "LNKFLAGS = -s"
  1921.  
  1922. #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
  1923. # +Obb optimization option not available.
  1924. hpux80:
  1925.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 8.0'
  1926.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1927.     $(MAKE) -B wermit "CFLAGS = \
  1928.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1929.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1930.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD"
  1931.  
  1932. #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
  1933. #Fullscreen file display support via curses library.
  1934. # +Obb optimization option not available.
  1935. hpux80c:
  1936.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 8.0'
  1937.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1938.     $(MAKE) -B wermit "CFLAGS = -DCK_CURSES \
  1939.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1940.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1941.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD -lcurses"
  1942.  
  1943. #HP 9000 HP-UX 8.0, same as 7.0 with long filenames and TCP/IP support.
  1944. #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
  1945. # +Obb optimization option available.
  1946. hpux80pa:
  1947.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 8.0'
  1948.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1949.     $(MAKE) -B wermit "CFLAGS = +Obb700 \
  1950.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1951.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1952.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD"
  1953.  
  1954. #HP 9000 HP-UX 8.0, same as 7.0 with long filenames and TCP/IP support.
  1955. #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
  1956. #Fullscreen file display support via curses library.
  1957. # +Obb optimization option available.
  1958. #(Maybe the -DSVR3 here should be -DSVR4?) (Is the final -O redundant?)
  1959. hpux80pac:
  1960.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 8.0'
  1961.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1962.     $(MAKE) -B wermit "CFLAGS = +Obb700 -DCK_CURSES \
  1963.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1964.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1965.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD -lcurses"
  1966.  
  1967. #As above, but compiled with GCC 2.3.3.
  1968. hpux80pagcc:
  1969.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX 8.0 with gcc,'
  1970.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1971.     $(MAKE) wermit CC=gcc CC2=gcc "CFLAGS = \
  1972.     -DHPUXDEBUG -DHPUX -DSVR4 -DDIRENT -DLONGFN \
  1973.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1974.     -DTCPSOCKET  $(KFLAGS) -O" "LIBS = -lBSD"
  1975.  
  1976. #HP 9000 HP-UX 8.0, no TCP/IP because /usr/lib/libBSD.a can't be found,
  1977. #or TCP/IP header files missing.
  1978. hpux80notcp:
  1979.     $(MAKE) "MAKE=$(MAKE)" hpuxde
  1980.  
  1981. #HP-UX 9.1 + TCP/IP + curses
  1982. hpux91pac:
  1983.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 9.1'
  1984.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1985.     $(MAKE)    wermit "CFLAGS = +Obb674 -DCK_CURSES \
  1986.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1987.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1988.     -DTCPSOCKET  $(KFLAGS)   " "LNKFLAGS = -s" "LIBS = -lBSD -lcurses"
  1989.  
  1990. #HP-UX 9.1 + TCP/IP + curses, as above but with HP-specific optimization
  1991. hpux91paco:
  1992.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 9.1'
  1993.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1994.     $(MAKE)    wermit "CFLAGS = +Obb674 -DCK_CURSES \
  1995.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1996.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1997.     +DA750 +DS750 +ESlit +ESsfc -J +O3 \
  1998.     -DTCPSOCKET  $(KFLAGS)   " "LNKFLAGS = -s" "LIBS = -lBSD -lcurses"
  1999.  
  2000. #Regulus on CIE Systems 680/20
  2001. cie:
  2002.     @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
  2003.     $(MAKE) wermit "CFLAGS = -DATTSV -DNOFILEH -DCIE $(KFLAGS) -O" \
  2004.     "LNKFLAGS ="
  2005.  
  2006. # Linux with the GCC 2.1 compiler.
  2007. linuxgcc2:
  2008.     @echo 'Making C-Kermit Linux with gcc2.1'
  2009.     $(MAKE) wermit "CC = gcc" "CFLAGS = -O -DPOSIX -DDIRENT -DDYNAMIC  \
  2010.     -DUSLEEP $(KFLAGS)" "CC2 = gcc" "LDFLAGS = -ltermcap "
  2011.  
  2012. # Linux with the GCC 2.1 compiler with TCP/IP and fullscreen display
  2013. linuxgcc2net:
  2014.     @echo 'Making C-Kermit Linux with gcc2.1 and TCP/IP'
  2015.     $(MAKE) wermit "CC = gcc" "CFLAGS = -O -DPOSIX -DDIRENT -DDYNAMIC  \
  2016.     -DUSLEEP -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "CC2 = gcc" \
  2017.     "LIBS = -ltermcap -lcurses"
  2018.  
  2019. #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
  2020. #The -O flag may fail on some modules (like ckuus2.c), in which case you
  2021. #should compile them by hand, omitting the -O.  If you get "hash table
  2022. #overflow", try adding -DNODEBUG.
  2023. #Also, reportedly this compiles better with gcc than with cc.
  2024. mpsysv:
  2025.     @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
  2026.     $(MAKE) wermit "CFLAGS= -DATTSV $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
  2027.  
  2028. #Microsoft "Xenix/286" e.g. for IBM PC/AT
  2029. xenix:
  2030.     @echo 'Making C-Kermit $(CKVER) for Xenix/286'
  2031.     $(MAKE) wermit \
  2032.     "CFLAGS= -DXENIX -DNOFILEH $(KFLAGS) -Dunix -F 3000 -i" \
  2033.     "LNKFLAGS = -F 3000 -i"
  2034.  
  2035. #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
  2036. #Should this not work, try some of the tricks from sco286.
  2037. #NOTE: -DRENAME is omitted for early SCO Xenix releases because it didn't
  2038. #exist, or its semantics were different from the later POSIX-compliant
  2039. #version of rename().
  2040. sco86:
  2041.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
  2042.     $(MAKE) wermit \
  2043.     "CFLAGS= -DXENIX -DNOFILEH $(KFLAGS) -Dunix -F 3000 -i -M0me" \
  2044.     "LNKFLAGS = -F 3000 -i -s -M0me" "LIBS = -lx"
  2045.  
  2046. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  2047. #Reportedly, this "make" can fail simply because of the size of this
  2048. #makefile.  If that happens, use "makeL", or edit out some of the
  2049. #other entries.  No debugging or character-set translation.
  2050. sco286:
  2051.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
  2052.     @echo 'If make fails, try using makeL.'
  2053.     $(MAKE) wermit \
  2054.     "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  2055.     -DNODEBUG -DNOTLOG -DNOCSETS \
  2056.     $(KFLAGS) -F 3000 -i -M2let32" \
  2057.     "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
  2058.  
  2059. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  2060. #As above, but with HDBUUCP
  2061. sco286hdb:
  2062.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
  2063.     @echo 'If make fails, try using makeL.'
  2064.     $(MAKE) wermit \
  2065.     "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  2066.     -DHDBUUCP $(KFLAGS) -F 3000 -i -M2let32" \
  2067.     "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
  2068.  
  2069. #SCO Xenix/386 2.2.2
  2070. sco386:
  2071.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.2...'
  2072.     $(MAKE) wermit \
  2073.     "CFLAGS= -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP $(KFLAGS) -Otcl -M3e" \
  2074.     "LNKFLAGS = -s" "LIBS = -lx"
  2075.  
  2076. #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
  2077. sco386gcc:
  2078.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  2079.     $(MAKE) wermit "CC = gcc" "CC2 = gcc" \
  2080.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2081.     -DNOJC -DNODEBUG -DDYNAMIC $(KFLAGS) \
  2082.     -traditional -fpcc-struct-return -fstrength-reduce \
  2083.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  2084.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  2085.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX \
  2086.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx"
  2087.  
  2088. #SCO UNIX (and ODT) entries...
  2089. #
  2090. #NOTE: All SCO UNIX entry LIBS should have "-lc_s -lc -lx" IN THAT ORDER (if
  2091. #shared C library is desired), or else "-lc -lx" IN THAT ORDER.  Use shared C
  2092. #libraries to save memory, but then don't expect to run the resulting binary
  2093. #on a different machine.  When using -lc_s, you must also use -lc, because the
  2094. #shared C library does not contain all of libc.a.  And in all cases, -lc must
  2095. #ALWAYS precede -lx.
  2096. #
  2097. #ANOTHER NOTE: -DRENAME is included in all SCO UNIX entries.  Remove it if it
  2098. #causes trouble.
  2099. #
  2100. #AND ANOTHER: In theory, it should be possible to run SCO UNIX binaries on
  2101. #SCO Xenix 2.3 and later.  In practice, this might not work because of the
  2102. #libraries, etc.  Also, don't add the -link -z switch (which is supposed to
  2103. #root out references to null pointers) because it makes UNIX binaries core
  2104. #dump when they are run under Xenix.
  2105.  
  2106. #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
  2107. sco3r2:
  2108.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386...'
  2109.     @echo 'Warning: If make blows up, edit the makefile to join'
  2110.     @echo 'the following three continued lines into one line.'
  2111.     $(MAKE) wermit \
  2112.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2113.     -DRENAME -DNOJC $(KFLAGS) -Otcl" "LNKFLAGS = -s" "LIBS = -lc -lx"
  2114.  
  2115. # Exactly the same as above, but enables some special SCO-specific code
  2116. # that allegedly clears up some problems with HANGUP and with uugetty.
  2117. # For satisfactory operation on bidirectional lines that are handled by
  2118. # uugetty, you must install the kermit program with owner=group=uucp
  2119. # and permission 06755.
  2120. sco3r2x:
  2121.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386...'
  2122.     @echo 'Warning: If make blows up, edit the makefile to join'
  2123.     @echo 'the following four continued lines into one line.'
  2124.     $(MAKE) wermit \
  2125.     "CFLAGS= -DSCO32 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2126.     -DNOJC -DRENAME -DNOCOTFMC $(KFLAGS) -Otcl" \
  2127.     "LNKFLAGS = -s" "LIBS = -lc -lx"
  2128.  
  2129. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  2130. #In case of compilation or runtime problems, try adding
  2131. #"-DUID_T=int -DGID_T=int" to the CFLAGS.  If that doesn't work, try
  2132. #"-DUID_T=uid_t -DGID_T=gid_t".
  2133. sco3r2net:
  2134.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
  2135.     @echo 'Warning: If make blows up, edit the makefile to join'
  2136.     @echo 'the following three continued lines into one line.'
  2137.     $(MAKE) wermit \
  2138.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DDYNAMIC -DNOFILEH \
  2139.     -DHDBUUCP -DRDCHK -DNAP -DRENAME -DTCPSOCKET -DEXCELAN -DNOJC \
  2140.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket"
  2141.  
  2142. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  2143. #As above, with curses library added for FULLSCREEN file transfer display.
  2144. #See comments for sco3r2net.
  2145. sco3r2netc:
  2146.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan / curses...'
  2147.     @echo 'Warning: If make blows up, edit the makefile to join'
  2148.     @echo 'the following three continued lines into one line.'
  2149.     $(MAKE) wermit \
  2150.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DDYNAMIC -DNOFILEH \
  2151.     -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) \
  2152.     -DRENAME -DCK_CURSES -O" "LNKFLAGS = -s" \
  2153.     "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  2154.  
  2155. #SCO UNIX 3.2.x or SCO Xenix 2.3.x with Racal InterLan TCP/IP support
  2156. # Extra compile flags for other version of Racal InterLan TCP/IP:
  2157. # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
  2158. # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
  2159. # ISC386ix/NP622I, use -DSYSV -Di386
  2160. # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
  2161. # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
  2162. sco3r2netri:
  2163.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
  2164.     @echo 'Warning: If make blows up, edit the makefile to join'
  2165.     @echo 'the following five continued lines into one line.'
  2166.     $(MAKE) wermit \
  2167.     "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP \
  2168.     -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV \
  2169.     -DRENAME -DNOJC $(KFLAGS) -Otcl -M3e" "LNKFLAGS = -s" \
  2170.     "LIBS = -lc -lx -ltcp"
  2171.  
  2172. # SCO XENIX/386 2.3.3 SysV with SCO TCP/IP
  2173. # System V STREAMS TCP developed by Lachman Associates Inc and
  2174. # Convergent Technologies.
  2175. sco3r2lai:
  2176.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  2177.     @echo 'Warning: If make blows up, edit the makefile to join'
  2178.     @echo 'the following four continued lines into one line.'
  2179.     $(MAKE) wermit \
  2180.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  2181.     -DRENAME -DNAP -DTCPSOCKET -DPWID_T=int $(KFLAGS) -Otcl -i -M3e" \
  2182.     "LNKFLAGS = -i -s" "LIBS = -lc -lx -lsocket"
  2183.  
  2184. #SCO UNIX/386 3.2v2 (POSIX job control), shared libraries.
  2185. sco3r22:
  2186.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  2187.     @echo 'Warning: If make blows up, edit the makefile to join'
  2188.     @echo 'the following three continued lines into one line.'
  2189.     make wermit \
  2190.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DRENAME \
  2191.     -DPID_T=pid_t -DPWID_T=int -DDIRENT -DDYNAMIC $(KFLAGS) -O" \
  2192.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  2193.  
  2194. #SCO UNIX/386 3.2v2, POSIX job control, fullscreen file transfer display,
  2195. #dynamic memory allocation, shared C library
  2196. sco3r22c:
  2197.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  2198.     @echo 'Warning: If make blows up, edit the makefile to join'
  2199.     @echo 'the following four continued lines into one line.'
  2200.     make wermit \
  2201.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2202.     -DCK_CURSES -DDYNAMIC -DDIRENT -DRENAME \
  2203.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -O" \
  2204.     "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
  2205.  
  2206. #SCO UNIX/386 3.2v2 with gcc 1.40 or later (POSIX job control)
  2207. sco3r22gcc:
  2208.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2, gcc'
  2209.     @echo 'Warning: If make blows up, edit the makefile to join'
  2210.     @echo 'the following seven continued lines into one line.'
  2211.     make wermit "CC = gcc" \
  2212.     "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2213.     -DRENAME -traditional -fpcc-struct-return -fstrength-reduce \
  2214.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  2215.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  2216.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  2217.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) " "LNKFLAGS = -s" \
  2218.     "LIBS = -lc_s -lc -lx"
  2219.  
  2220. #SCO UNIX/386 3.2v2 (ODT 1.1) (POSIX job control) with SCO TCP/IP, shared libs
  2221. sco3r22net:
  2222.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
  2223.     @echo 'Warning: If make blows up, edit the makefile to join'
  2224.     @echo 'the following three continued lines into one line.'
  2225.     make wermit \
  2226.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
  2227.     -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DDYNAMIC $(KFLAGS) -O" \
  2228.     "LNKFLAGS = -s" "LIBS = -lsocket -lc_s -lc -lx"
  2229.  
  2230. #As above, but with curses for fullscreen file transfer display.
  2231. sco3r22netc:
  2232.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 + TCP/IP...'
  2233.     @echo 'Warning: If make blows up, edit the makefile to join'
  2234.     @echo 'the following three continued lines into one line.'
  2235.     make wermit "CFLAGS= \
  2236.     -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DRENAME \
  2237.     -DCK_CURSES -DDIRENT -DDYNAMIC -DPID_T=pid_t -DPWID_T=int -O" \
  2238.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  2239.  
  2240. #SCO UNIX/386 3.2v4 (POSIX job control), curses, ANSI C compilation,
  2241. #<dirent.h> (EAFS) file system.
  2242. sco32v4:
  2243.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  2244.     @echo 'Warning: If make blows up, edit the makefile to join'
  2245.     @echo 'the following three continued lines into one line.'
  2246.     make wermit \
  2247.     "CFLAGS= -DXENIX -DSVR3 -DDIRENT -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2248.     -DRENAME -DCK_CURSES -DM_TERMINFO -DNOANSI -DPID_T=pid_t -DPWID_T=int \
  2249.     -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
  2250.  
  2251. #SCO UNIX/386 3.2v4 with gcc 1.40 or later, POSIX job control
  2252. #gcc 1.40 or later
  2253. sco32v4gcc:
  2254.     make wermit "CC = gcc" \
  2255.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOANSI \
  2256.     -DRENAME -DDIRENT -DCK_CURSES -DM_TERMINFO \
  2257.     -traditional -fpcc-struct-return -fstrength-reduce \
  2258.     -D_KR -D_NO_PROTOTYPE -D_SVID \
  2259.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  2260.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  2261.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  2262.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) " "LNKFLAGS = -s" \
  2263.     "LIBS = -lcurses -lc_s -lc -lx"
  2264.  
  2265. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  2266. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  2267. #gcc 1.40 or later
  2268. sco32v4netgcc:
  2269.     make wermit "CC = gcc" \
  2270.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOANSI \
  2271.     -DRENAME -DTCPSOCKET -DDIRENT -DCK_CURSES -DM_TERMINFO \
  2272.     -traditional -fpcc-struct-return -fstrength-reduce \
  2273.     -D_KR -D_NO_PROTOTYPE -D_SVID \
  2274.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  2275.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  2276.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  2277.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) " "LNKFLAGS = -s" \
  2278.     "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  2279.  
  2280. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  2281. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  2282. sco32v4net:
  2283.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  2284.     $(MAKE) wermit \
  2285.     "CFLAGS= -DXENIX -DSVR3 -DDIRENT -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2286.     -DRENAME -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DDYNAMIC $(KFLAGS) \
  2287.     -DPID_T=pid_t -DPWID_T=int -O" \
  2288.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  2289.  
  2290. sco_odt30:
  2291.     @echo SCO ODT 3.0
  2292.     $(MAKE) "MAKE=$(MAKE)" sco32v4net "KFLAGS=$(KFLAGS) -DODT30"
  2293.  
  2294. #PC/IX, Interactive Corp System III for IBM PC/XT
  2295. pcix:
  2296.     @echo 'Making C-Kermit $(CKVER) for PC/IX...'
  2297.     $(MAKE) wermit \
  2298.     "CFLAGS= -DPCIX -DISIII $(KFLAGS) -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
  2299.  
  2300. #Integrated Solutions Inc V8S VME 68020
  2301. isi:
  2302.     @echo Making C-Kermit $(CKVER) for 4.2BSD on ISI...
  2303.     $(MAKE) wermit "CC = cc" \
  2304.     "CFLAGS= -DBSD4 -DTCPSOCKET -DINADDRX -DDCLPOPEN -DDEBUG -DNOSETREU \
  2305.     -DCK_CURSES $(KFLAGS)" "LIBS = -lcurses -ltermcap"
  2306.  
  2307. #Interactive Corp System III port in general --
  2308. #is3: (very old, probably not sufficient for 5A)
  2309. #    @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  2310. #    make wermit "CFLAGS = -DISIII -Ddata=datax -O -i" "LNKFLAGS = -i"
  2311. #The following should work, use it if you don't have gcc.
  2312. #Use is3gcc if you have gcc.
  2313. is3:
  2314.     @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  2315.     $(MAKE) wermit \
  2316.     "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -DNAP -DHDBUUCP
  2317.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O -i' "LNKFLAGS = -i"
  2318.  
  2319. #Interactive UNIX System V R3, no network support.  Uses <dirent.h> and Honey
  2320. #DanBer UUCP.  If this entry does not compile correctly, try any or all of the
  2321. #following.  These suggestions also apply more or less to the other is5r3xxx
  2322. #entries that follow this one.
  2323. # . Remove the UID_T and GID_T definitions, or change them as required.
  2324. # . Change -DDIRENT to -DSDIRENT.
  2325. # . Add -DSIGTYP=void.
  2326. # . Remove -g from LNKFLAGS.
  2327. # . Add -DNOANSI to remove compiler complaints about ANSI C constructions
  2328. # . Add other -DNOxxx's to save space (e.g. -DNOCSETS)
  2329. # See the next few makefile entries for related examples.
  2330. is5r3:
  2331.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  2332.     @echo 'If this does not work please read the makefile entry.'
  2333.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS \
  2334.     -DUID_T=ushort -DGID_T=ushort -DDYNAMIC -DI386IX $(KFLAGS)" \
  2335.     "LNKFLAGS = -g"
  2336.  
  2337. #Interactive Corp System System V R3 with gcc
  2338. is3gcc:
  2339.     @echo 'Making C-Kermit $(CKVER) for Interactive System V R3 / gcc...'
  2340.     $(MAKE) wermit CC=gcc CC2=gcc \
  2341.     'CFLAGS = -D_SYSV3 -DISIII -Ddata=datax -DNAP -DHDBUUCP \
  2342.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O' "LNKFLAGS ="
  2343.  
  2344. #Interactive UNIX System V R3, POSIX variant.  Untested.
  2345. #Uses dirent.h and Honey DanBer uucp.  Read comments in is5r3 entry.
  2346. is5r3p:
  2347.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  2348.     $(MAKE) wermit "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS \
  2349.     -DDYNAMIC -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
  2350.  
  2351. #Interactive UNIX SVR3 2.2.1, job control, curses, no net, gcc.
  2352. is5r3gcc:
  2353.     $(MAKE) wermit CC=gcc CC2=gcc CFLAGS="-g -posix -DSVR3 -DDIRENT \
  2354.     -DHDBUUCP -O -DNOCSETS -DDYNAMIC -DI386IX -DSVR3JC -DCK_CURSES \
  2355.     $(KFLAGS)" LNKFLAGS="-posix" LIBS="-lcurses -lc_s"
  2356.  
  2357. #Interactive UNIX System V R3 with TCP/IP network support.
  2358. #Needs -linet for net functions.  signal() is void rather than int.
  2359. #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
  2360. #Also see is5r3net2 if you have trouble with this entry.
  2361. is5r3net:
  2362.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  2363.     @echo 'If this does not work please read the makefile entry.'
  2364.     $(MAKE) wermit \
  2365.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2366.     -DI386IX $(KFLAGS) -O" "LIBS = -linet"
  2367.  
  2368. #Interactive UNIX System V R3, no job control, signal() void rather than int.
  2369. #Uses dirent.h and Honey DanBer uucp.  Needs -linet for net functions.
  2370. #Read comments in is5r3 entry.  Use this entry if is5r3net fails.
  2371. #Saves some space by stripping (-s) and using shared library (-lc_s).
  2372. is5r3net2:
  2373.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  2374.     $(MAKE) wermit \
  2375.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DTCPSOCKET -DNOJC \
  2376.     -DSIGTYP=void -DNOANSI -DI386IX $(KFLAGS) -O" \
  2377.     "LNKFLAGS= -s" "LIBS = -linet -lc_s"
  2378.  
  2379. #Interactive UNIX System V R3 (version 2.2 or later) with job control & curses.
  2380. #Uses dirent.h and Honey DanBer UUCP.
  2381. is5r3jc:
  2382.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  2383.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS \
  2384.     -DUID_T=ushort -DGID_T=ushort -DDYNAMIC -DI386IX -DSVR3JC -DCK_CURSES \
  2385.     $(KFLAGS)" "LNKFLAGS = -s" "LIBS=-lcurses -lc_s"
  2386.  
  2387. #Sunsoft/Interactive UNIX System V R3 (version 2.2 or later)
  2388. #with job control, curses, and TCP/IP networking.
  2389. #Uses dirent.h and Honey DanBer UUCP.
  2390. is5r3netjc:
  2391.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  2392.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS \
  2393.     -DUID_T=ushort -DGID_T=ushort -DDYNAMIC -DI386IX -DSVR3JC -DCK_CURSES \
  2394.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" "LIBS=-linet -lcurses -lc_s"
  2395.  
  2396. #Masscomp System III
  2397. rtu:
  2398.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
  2399.     $(MAKE) wermit \
  2400.     "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
  2401.  
  2402. #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
  2403. #Includes <ndir.h> = /usr/include/ndir.h
  2404. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  2405. rtubsd:
  2406.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  2407.     ucb make wermit \
  2408.     "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  2409.     "LIBS = -lndir"
  2410.  
  2411. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  2412. #Includes "usr/lib/ndir.h"
  2413. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  2414. rtubsd2:
  2415.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  2416.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)" \
  2417.     "LIBS = -lndir"
  2418.  
  2419. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  2420. #Includes <sys/ndir.h>
  2421. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  2422. rtubsd3:
  2423.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
  2424.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)" \
  2425.     "LIBS = -lndir"
  2426.  
  2427. #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
  2428. #In case of problems, add back the -DRTU switch.
  2429. #In case -DTCPSOCKET gives trouble, remove it.
  2430. rtus5:
  2431.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x...'
  2432.     $(MAKE) wermit \
  2433.     "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DTCPSOCKET -DDYNAMIC \
  2434.     -DNOSETBUF $(KFLAGS)"
  2435.  
  2436. #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
  2437. #Use this one if rtus5 gives warnings about pointer type mismatches.
  2438. #In case of problems, add back the -DRTU switch.
  2439. rtus5r3:
  2440.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
  2441.     $(MAKE) wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
  2442.  
  2443. #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
  2444. # Requires code-mapping on non-I&D-space 11/23 processor, plus some
  2445. # fiddling to get interrupt targets into resident code section.
  2446. # This almost certainly doesn't work any more.
  2447. provx1:
  2448.     @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
  2449.     $(MAKE) wart "CFLAGS= -DPROVX1 $(KFLAGS)" "LNKFLAGS= "
  2450.     $(MAKE) wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780" \
  2451.         "LNKFLAGS= -u _sleep -lc -md780"
  2452.  
  2453. #Nixdorf Targon/31.
  2454. #AT&T UNIX System V R3, signal() is void rather than int.
  2455. #Uses dirent.h without Honey DanBer uucp.
  2456. t31tos40x:
  2457.     @echo 'Making C-Kermit $(CKVER) for Targon/31 with TOS 4.0.xx...'
  2458.         $(MAKE) wermit \
  2459.         "CFLAGS= -DSVR3 -DDIRENT -DDYNAMIC $(KFLAGS) -O" \
  2460.         "LNKFLAGS="
  2461.  
  2462. #NCR Tower 1632, OS 1.02
  2463. tower1:
  2464.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
  2465.     $(MAKE) wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
  2466.  
  2467. #NCR Tower 32, OS Release 1.xx.xx
  2468. tower32-1:
  2469.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
  2470.     $(MAKE) wermit \
  2471.     "CFLAGS = -DATTSV -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS = -n"
  2472.  
  2473. #NCR Tower 32, OS Release 2.xx.xx
  2474. tower32-2:
  2475.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
  2476.     $(MAKE) wermit "CFLAGS = -DATTSV -DHDBUUCP -DDYNAMIC $(KFLAGS) -O2" \
  2477.     "LNKFLAGS = -n"
  2478.  
  2479. #NCR Tower 32, OS Releases based on System V R3
  2480. #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
  2481. tower32:
  2482.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
  2483.     $(MAKE) wermit \
  2484.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOSYSIOCTLH $(KFLAGS) \
  2485.     -DUID_T=ushort -DGID_T=ushort -O1"
  2486.  
  2487. #NCR Tower 32, OS Releases based on System V R3
  2488. tower32g:
  2489.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
  2490.     $(MAKE) wermit "CC = gcc" \
  2491.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOSYSIOCTLH $(KFLAGS) \
  2492.     DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
  2493.  
  2494. #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
  2495. ft18:
  2496.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
  2497.     $(MAKE) wermit "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS) \
  2498.     -DPID_T=short"
  2499.  
  2500. #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd).
  2501. #The modules that break the optimizer are compiled separately.
  2502. ft21:
  2503.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
  2504.     $(MAKE) ckuusx.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  2505.     -SYM 800  -DDYNAMIC -DNOSETBUF -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  2506.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  2507.     $(MAKE) ckuxla.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  2508.     -SYM 800  -DDYNAMIC -DNOSETBUF -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  2509.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  2510.     $(MAKE) ckudia.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  2511.     -SYM 800  -DDYNAMIC -DNOSETBUF -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  2512.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  2513.     $(MAKE) wermit "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800 \
  2514.     -DDYNAMIC -DNOSETBUF -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  2515.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  2516.  
  2517. #Valid Scaldstar
  2518. #Berkeleyish, but need to change some variable names.
  2519. valid:
  2520.     @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
  2521.     $(MAKE) wermit \
  2522.     "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
  2523.  
  2524. #IBM IX/370 on IBM 370 Series mainframes
  2525. #Mostly like sys3, but should buffer packets.
  2526. ix370:
  2527.     @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
  2528.     $(MAKE) wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O" \
  2529.     "LNKFLAGS = -i"
  2530.  
  2531. #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
  2532. #Mostly like V7, but can't do initrawq() buffer peeking.
  2533. uts24:
  2534.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
  2535.     $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  2536.     -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  2537.     -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
  2538.  
  2539. #Amdahl UTSV UNIX System V = System V R2 or earlier.
  2540. utsv:
  2541.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
  2542.     $(MAKE) wermit "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
  2543.  
  2544. #BBN C/70 with IOS 2.0
  2545. #Mostly Berkeley-like, but with some ATTisms
  2546. c70:
  2547.     @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
  2548.     $(MAKE) wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
  2549.  
  2550. #Zilog ZEUS 3.21
  2551. zilog:
  2552.     @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
  2553.     $(MAKE) wermit "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O" \
  2554.     "LNKFLAGS = -i -lpw"
  2555.  
  2556. #Whitechapel MG-1 Genix 1.3
  2557. white:
  2558.     @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
  2559.     @touch ckcpro.c
  2560.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0  $(KFLAGS)"
  2561.  
  2562. #Pixel 1000
  2563. pixel:
  2564.     @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
  2565.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
  2566.  
  2567. ptx:
  2568.     $(MAKE) "MAKE=$(MAKE)" dynixptx12
  2569.  
  2570. #CDC VX/VE 5.2.1
  2571. vxve:
  2572.     @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
  2573.     $(MAKE) wermit \
  2574.     "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  2575.     "LNKFLAGS = -i"
  2576.  
  2577. #Tandy 16/6000 with Xenix 3.0
  2578. #Add -DNOxxx options to remove features if program won't load.
  2579. trs16:
  2580.     @echo 'Making C-Kermit $(CKVER) for Tandy 16/16000, Xenix 3.0...'
  2581.     $(MAKE) wermit "CFLAGS = -DATTSV -DTRS16 -DDCLPOPEN $(KFLAGS) -O" \
  2582.     "LNKFLAGS = -n -s"
  2583.  
  2584. #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX.  Sys V with nap() and rdchk().
  2585. # nd = no opendir(), readdir(), closedir(), etc.
  2586. # Some of the modules fail to compile with -O.
  2587. dnixnd:
  2588.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
  2589.     $(MAKE) wermit "CFLAGS = -DATTSV -DNAP -DRDCHK -DDYNAMIC -DDCLPOPEN \
  2590.     -U__STDC__ $(KFLAGS)"
  2591.  
  2592. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  2593. # This one has opendir(), readdir(), closedir(), etc.
  2594. # Some of the modules fail to compile with -O.
  2595. dnix:
  2596.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  2597.     $(MAKE) wermit "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT -DDYNAMIC  \
  2598.     -U__STDC__ $(KFLAGS)"
  2599.  
  2600. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  2601. # As above, but with curses and TCP/IP.
  2602. # You might get complaints about redefinition of O_RDONLY, etc, because
  2603. # of bugs in the DNIX header files, which can be fixed by adding #ifndef...
  2604. # around the offending definitions in the header files.
  2605. dnixnetc:
  2606.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  2607.     $(MAKE) wermit "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT -DDYNAMIC  \
  2608.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd -U__STDC__ $(KFLAGS)" \
  2609.     "LIBS = -ln -lcurses"
  2610.  
  2611. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
  2612. dnix5r3:
  2613.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  2614.     @echo 'with Honey DanBer UUCP'
  2615.     $(MAKE) wermit "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  2616.     -DDYNAMIC -DCK_CURSES -DRENAME $(KFLAGS) -O" "LIBS= -lcurses"
  2617.  
  2618. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
  2619. dnix5r3net:
  2620.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  2621.     @echo 'with Honey DanBer UUCP and TCP/IP'
  2622.     $(MAKE) wermit "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  2623.     -DTCPSOCKET -DDYNAMIC -DCK_CURSES -DRENAME $(KFLAGS) -O \
  2624.     -I/usr/include/bsd" "LIBS = -ln -lcurses"
  2625.  
  2626. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  2627. #ANSI C compilation and libraries.
  2628. #Note that for DNIX 5.3 2.2 you have to correct a bug in /usr/include/stdlib.h:
  2629. #change "extern    void free(char *str);"
  2630. #to     "extern void free(void *str);"
  2631. #NOTE: This bug is reportedly fixed in DNIX 5.3 2.2.1.
  2632. dnix5r3ansi:
  2633.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  2634.     @echo 'with ANSI C Honey DanBer UUCP'
  2635.     $(MAKE) wermit \
  2636.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT -DDYNAMIC \
  2637.     -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS)" \
  2638.     "LIBS= -lcurses"
  2639.  
  2640. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  2641. # + TCP/IP, ANSI C compilation and libraries.
  2642. dnix5r3ansinet:
  2643.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  2644.     @echo 'with ANSI C Honey DanBer UUCP'
  2645.     $(MAKE) wermit \
  2646.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT -DDYNAMIC \
  2647.     -DTCPSOCKET -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS) \
  2648.     -I/usr/include/bsd" "LIBS= -ln -lcurses"
  2649.  
  2650. #QNX 4.1 with Watcom C 8.5 on i286 PCs and above.
  2651. #A 16-bit OS, fully configured C-Kermit is too big.
  2652. #stacksize 26000, objects larger than 100 bytes in their own segments,
  2653. #string constants to the codesegment, etc.
  2654. qnx:
  2655.     @echo 'Making C-Kermit $(CKVER) for QNX 4.1...'
  2656.     $(MAKE) wermit "LNKFLAGS = -mh -N 26000" "CFLAGS = -Wc,-fpc -Wc,-j \
  2657.     -Wc,-Ols -Wc,-zdf -Wc,-zc -Wc,-zt100 -mh -DPOSIX -DQNX -DDIRENT \
  2658.     -DNOCYRIL -DNODEBUG -DNOMSEND -DMINIDIAL -DNOXMIT -DNOSCRIPT -DNOSPL \
  2659.     -DNOSETKEY -DDYNAMIC -DPID_T=pid_t $(KFLAGS)"
  2660.  
  2661. #Ridge 32 with ROS 3.2
  2662. ridge32:
  2663.     @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
  2664.     $(MAKE) wermit \
  2665.     "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  2666.     "LNKFLAGS = -i"
  2667.  
  2668. #Altos 486, 586, or 986 with Xenix 3.0
  2669. altos:
  2670.     @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
  2671.     $(MAKE) wermit \
  2672.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  2673.     "LNKFLAGS= -i"
  2674.  
  2675. #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
  2676. #For systems with small memories.  It might also be necessary to chop certain
  2677. #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
  2678. #overflow.   If this makefile is too big or complex for the Altos, compile
  2679. #and link by hand or write shell scripts.
  2680. altosc:
  2681.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
  2682.     $(MAKE) wermit \
  2683.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  2684.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O" \
  2685.     "LNKFLAGS= -Mm -s"
  2686.  
  2687. #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
  2688. altosi:
  2689.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
  2690.     $(MAKE) wermit \
  2691.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  2692.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP \
  2693.     -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
  2694.  
  2695. # Altos ACS68000 68000 System, UNIX System 3 Release 2, 512k memory.
  2696. # also needs getcwd() external function; see ckuins.doc file.
  2697. # also, sys/types.h needed modifying:
  2698. #   #ifdef __SYS_TYPES_H__, #define ..., #endif
  2699. # also, ckuus2.c MUST be compiled NOOPT else symbol table is destroyed!
  2700. # Submission by Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu
  2701. #
  2702. altos3:
  2703.     @echo 'Making C-Kermit $(CKVER) for Altos ACS68k UNIX System III'
  2704.     $(MAKE) ckuus2.$(EXT) "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  2705.       -DNODIAL -DDCLPOPEN -DNOSETBUF -DNOSCRIPT -DNOHELP $(KFLAGS) -i"
  2706.     $(MAKE) wermit        "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  2707.       -DNODIAL -DDCLPOPEN -DNOSETBUF -DNOSCRIPT -DNOHELP $(KFLAGS) -i -O" \
  2708.         "LNKFLAGS = -i" "LIBS = getcwd.$(EXT)"
  2709.  
  2710. #MINIX - Original PC version with 64K+64K limit.
  2711. # Reportedly, the linker (asld) can run out of space while linking.  The only
  2712. # way around this is to make a copy of libc.a from which all modules that are
  2713. # not used by Kermit are removed.  If you have trouble compiling or running
  2714. # wart, "touch wart".  If that doesn't help, "touch ckcpro.c".
  2715. # The version configured below has no interactive command parser.
  2716. # If you can build this version successfully, maybe there will be room for
  2717. # a minimal interactive command parser too; try replacing -DNOICP with
  2718. # -DNOSPL, plus every other -DNOxxx flag there is, except for -DNOICP
  2719. # (see ckccfg.doc).
  2720. minix:
  2721.     @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...
  2722.     @echo 'TOTALLY UNTESTED!'
  2723.     $(MAKE) wermit EXT=s \
  2724.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
  2725.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V \
  2726.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  2727.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)" \
  2728.     "LNKFLAGS= -i -T"
  2729.  
  2730. #MINIX - PC version with 64K+64K limit, new (as yet unreleased) ACK 2.0 beta C
  2731. #compiler, which outputs .o object files, rather than .s.  But 'make' still
  2732. #expects .s files, so must be patched to use .o.  Tested on Minix 1.5.10.
  2733. minixnew:
  2734.     @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
  2735.     @echo 'no command parser...  TOTALLY UNTESTED!'
  2736.     $(MAKE) wermit \
  2737.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
  2738.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL \
  2739.     -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
  2740.     "LNKFLAGS= -i -T"
  2741.  
  2742. #MINIX/386 (PC Minix modified by Bruce Evans in Australia for 386 addressing)
  2743. minix386:
  2744.     @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
  2745.     @echo 'TOTALLY UNTESTED!'
  2746.     $(MAKE) wermit EXT=s \
  2747.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DDYNAMIC $(KFLAGS)"
  2748.  
  2749. #MINIX/386 (PC Minix modifed by Bruce Evans in Australia to use 386 addressing)
  2750. minix386gcc:
  2751.     @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
  2752.     @echo 'TOTALLY UNTESTED!'
  2753.     $(MAKE) wermit "CC=gcc -g -O" "CC2=gcc -g" \
  2754.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DDYNAMIC $(KFLAGS)"
  2755.  
  2756. #MINIX - 68k version with ACK compiler.
  2757. # If you have trouble compiling or running wart, "touch wart".
  2758. # If it still doesn't work, "touch ckcpro.c".
  2759. # The version configured below has many features removed, including
  2760. # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
  2761. # character set support, and the entire script programming language.
  2762. # But it does have an interactive command parser.
  2763. # Make sure make(1) has (at least) 100000 chmemory!
  2764. # If you are using the Amsterdam C compiler, you might have to add "-D__ACK__".
  2765. minix68k:
  2766.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...
  2767.     $(MAKE) wermit \
  2768.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
  2769.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  2770.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  2771.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  2772.  
  2773. #MINIX - 68k version with c68 compiler.
  2774. # If you have trouble compiling or running wart, "touch wart" or
  2775. # "touch ckcpro.c". Compiling ckudia.c (no -DNODIAL!) might fail. :-(
  2776. # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
  2777. # 100000 chmemory.  On a 1Mb Atari ST this means that the recursive
  2778. # call of make fails due to memory shortage.  Try "make -n minixc68 >makeit",
  2779. # followed by ". makeit".  Otherwise, as above.
  2780. minixc68:
  2781.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  2782.     $(MAKE) wermit "CC= cc -c68" \
  2783.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
  2784.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  2785.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  2786.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  2787.  
  2788. #MIPS Computer Systems with UMIPS RISC/OS AT&T UNIX System V R3.0.
  2789. #Add -DNOJC if UNIX job control causes trouble.
  2790. mips:
  2791.     @echo 'Making C-Kermit $(CKVER) for MIPS AT&T System V R3.0...'
  2792.     $(MAKE) wermit "CFLAGS = -DMIPS -DDIRENT -DDYNAMIC -DPID_T=int \
  2793.     $(KFLAGS) -DGID_T=gid_t -DUID_T=uid_t -i -O1500"
  2794.  
  2795. #As above, but with TCP/IP and fullscreen support.
  2796. mipstcpc:
  2797.     @echo 'Making C-Kermit $(CKVER) for MIPS AT&T System V R3.0...'
  2798.     $(MAKE) wermit "CFLAGS = -DMIPS -DDIRENT -DDYNAMIC -DPID_T=int \
  2799.     -DTCPSOCKET -I/usr/include/bsd -DCK_CURSES \
  2800.     $(KFLAGS) -DGID_T=gid_t -DUID_T=uid_t -i -O1500" \
  2801.     "LIBS = -lcurses -lbsd"
  2802.  
  2803. #Motorola Delta System V/68 R3, signal() is void rather than int.
  2804. #Uses dirent.h and Honey DanBer uucp.  Supports TCP/IP.
  2805. #After building, use "mcs -d" to reduce size of the executable program.
  2806. sv68r3:
  2807.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
  2808.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  2809.     -DTCPSOCKET $(KFLAGS) \
  2810.     -O" "LNKFLAGS ="
  2811.  
  2812. #Motorola Delta System V/68 R3V5, signal() is void rather than int.
  2813. #Uses dirent.h and Honey DanBer UUCP.  Supports TCP/IP.
  2814. #After building, use "mcs -d" to reduce size of the executable program.
  2815. sv68r3v5:
  2816.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5'
  2817.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  2818.     -DTCPSOCKET -DINADDRX $(KFLAGS) -O" "LNKFLAGS =" "LIBS = -linet"
  2819.  
  2820. #Motorola MVME147 System V/68 R3 V5.1. Requires gcc 2.1 to compile.
  2821. #After building, use "mcs -d" to reduce size of the executable program.
  2822. sv68r3v51:
  2823.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5.1'
  2824.     $(MAKE) wermit "CC=gcc-delta" "CC2=gcc-delta" \
  2825.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DNODEBUG -DNOSETBUF \
  2826.     $(KFLAGS) -O2 -v -ftraditional" "LNKFLAGS = -s -v" "LIBS = -lm881"
  2827.  
  2828. #Motorola Delta System V/88 R32, signal() is void rather than int.
  2829. #Uses dirent.h and Honey DanBer uucp.  Needs <sys/utime.h> for setting
  2830. #file dates.  Supports TCP/IP.
  2831. #After building, use "mcs -d" to reduce size of the executable program.
  2832. sv88r32:
  2833.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
  2834.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  2835.     -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) \
  2836.     -O" "LIBS= -lcurses" "LNKFLAGS = -s"
  2837.  
  2838. #Motorola Delta System V/88 R40.  Has <sys/termiox.h>, regular Berkeley
  2839. #sockets library, i.e. in.h and inet.h are not misplaced in sys (rather than
  2840. #netinet and arpa, respectively).  Uses ANSI C constructs, advisory file
  2841. #locking on devices, etc.  curses support added.  Reportedly, the
  2842. #/usr/include/sys/vnode.h file has a bug which must be fixed before this
  2843. #makefile entry can work correctly.  The "if DEBUG" directive at about line
  2844. #320 must be changed to "ifdef DEBUG".
  2845. #After building, use "mcs -d" to reduce size of the executable program.
  2846. sv88r40:
  2847.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  2848.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  2849.     -DDYNAMIC -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  2850.     "LIBS= -lsocket -lnsl -lcurses" "LNKFLAGS = -s"
  2851.  
  2852. #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
  2853. #Maybe the -i link option should be removed?
  2854. sxae50:
  2855.     @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
  2856.     $(MAKE) wermit \
  2857.     "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O \
  2858.     -DKANJI" "LNKFLAGS= "
  2859.  
  2860. #Olivetti X/OS R2.3, 3.x.
  2861. #NOTES:
  2862. # . If you build the executable on 2.x X/OS, it will also run on 3.x.
  2863. # . If you build it on 3.x X/OS, it will NOT run on 2.x.
  2864. # . Kermit can run with no privileges unless the uucp lines are protected,
  2865. #   in which case kermit must be owned by uucp with suid bit set:
  2866. #   chown uucp kermit ; chmod 4111 kermit.
  2867. xos23:
  2868.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS...'
  2869.     $(MAKE) wermit \
  2870.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DDYNAMIC $(KFLAGS)' \
  2871.     "LIBS=" "LNKFLAGS="
  2872.  
  2873. #As above, but with curses.
  2874. xos23c:
  2875.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS with curses...'
  2876.     $(MAKE) wermit \
  2877.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DDYNAMIC -DCK_CURSES \
  2878.     $(KFLAGS)' "LIBS=-lcurses" "LNKFLAGS="
  2879.  
  2880. #Clean up intermediate and object files
  2881. clean:
  2882.     @echo 'Removing object files...'
  2883.     -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  2884. ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
  2885. ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \
  2886. ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \
  2887. ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckcmdb.$(EXT) \
  2888. ckcpro.c wart
  2889.  
  2890. #Run Lint on this mess for the SUN/BSD version.
  2891. lintsun:
  2892.     @echo 'Running Lint on C-Kermit $(CKVER) sources for SunOS version...'
  2893.     lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID -DDYNAMIC \
  2894.     ck[cu]*.c > ckuker.lint.sun
  2895.  
  2896. lintbsd:
  2897.     @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
  2898.     lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
  2899.  
  2900. lints5:
  2901.     @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
  2902.     lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
  2903.  
  2904. lintmips:
  2905.     @echo 'Running lint on C-Kermit $(CKVER) sources for MIPS version...'
  2906.     lint -DMIPS -DDIRENT -DPID_T=int -DGID_T=gid_t \
  2907.     -DUID_T=uid_t -DNOJC ck[cu]*.c > ckuker.lint.mips
  2908.